Function at 0x49c490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
push esi
push edi
mov esi, edx
mov dword [esp + 0x14], ecx
call fcn.00490ec0
mov edi, eax
test edi, edi
je 0x49c74e
cmp dword [edi], 0x3ccb6c71
jne 0x49c4e1
lea eax, [edi + 0x198]
mov byte [edi + 0x4f], 1
test eax, eax
je 0x49c4e1
cmp dword [eax], 0x3ccb6c71
jne 0x49c4e1
cmp byte [eax + 0x19], 0
je 0x49c4dd
mov byte [eax + 0x18], 1
jmp 0x49c4e1
mov byte [eax + 0x1d], 1
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x44], esi
mov edx, str.base:_initialize_not_called
mov dword [esp + 0x48], esi
mov esi, str.base:_disabled_by_previous_error
movlpd qword [esp + 0x50], xmm0
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], 0
movaps xmm0, xmmword [esp + 0x40]
movaps xmmword [esp + 0x60], xmm0
mov byte [esp + 0x58], 1
movaps xmm0, xmmword [esp + 0x50]
movaps xmmword [esp + 0x70], xmm0
mov ecx, dword [edi]
cmp ecx, 0x3ccb6c71
je 0x49c53c
cmp ecx, 0x75ae3d2
mov eax, esi
cmovne eax, edx
jmp 0x49c59c
mov eax, dword [edi + 4]
test eax, eax
je 0x49c55f
cmp eax, 1
je 0x49c55f
push edi
mov dword [edi], 0x75ae3d2
call fcn.005c69b0
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 0
xor eax, eax
mov ecx, dword [edi + 0x124]
sub ecx, eax
je 0x49c61c
sub ecx, 1
je 0x49c61c
mov dword [edi + 0x124], eax
xor dl, dl
movzx ecx, dl
mov dword [edi + 4], ecx
test eax, eax
je 0x49c5a4
cmp byte [eax], 0x23
jne 0x49c59c
mov dword [edi], 0x75ae3d2
test eax, eax
jne 0x49c745
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x49c5b4
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x49c5ef
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ecx]
test eax, eax
je 0x49c745
test edx, edx
je 0x49c745
imul eax, edx
shl eax, 2
push eax
call fcn.005ab960
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [ecx]
mov eax, ecx
mov dword [esp + 0x14], edx
mul edx
test edx, edx
ja 0x49c67b
jb 0x49c606
cmp eax, 0xffffffff
ja 0x49c67b
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xa1008888
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
jmp 0x49c693
lea eax, [esp + 0x60]
mov ecx, edi
push eax
lea edx, [esp + 0x24]
call fcn.00492870
add esp, 4
cmp eax, str._base:_short_read
jne 0x49c647
cmp byte [esp + 0x78], 0
je 0x49c647
mov eax, str.png:_truncated_input
jmp 0x49c596
mov ecx, eax
test eax, eax
jne 0x49c658
mov dword [edi + 0x124], eax
jmp 0x49c59c
cmp byte [eax], 0x24
jne 0x49c591
mov dword [edi + 0x124], 1
cmp byte [ecx], 0x24
jne 0x49c585
mov dl, 1
jmp 0x49c587
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov eax, dword [edi]
cmp eax, 0x3ccb6c71
je 0x49c6be
cmp eax, 0x75ae3d2
je 0x49c6be
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
jmp 0x49c6d3
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x14], ecx
test eax, eax
ja 0x49c745
jb 0x49c6d3
cmp ecx, 0xffffffff
ja 0x49c745
push ecx
call fcn.005cfa14
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x49c745
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x20]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx]
imul ecx, dword [eax]
mov eax, dword [ebp + 0x10]
shl ecx, 2
push ecx
push dword [eax]
lea ecx, [esp + 0x88]
call fcn.004766f0
add esp, 8
test eax, eax
jne 0x49c739
mov eax, dword [edi]
cmp eax, 0x3ccb6c71
je 0x49c727
cmp eax, 0x75ae3d2
mov eax, str.base:_initialize_not_called
cmovne esi, eax
jmp 0x49c794
mov eax, dword [edi + 4]
test eax, eax
je 0x49c756
cmp eax, 3
je 0x49c756
mov dword [edi], 0x75ae3d2
push dword [esp + 0x18]
call fcn.005c69b0
add esp, 4
push edi
call fcn.005c69b0
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 0
xor esi, esi
mov eax, dword [edi + 0x160]
sub eax, esi
je 0x49c7b5
sub eax, 1
je 0x49c7b5
mov dword [edi + 0x160], esi
xor cl, cl
xor eax, eax
mov edx, 3
test cl, cl
cmovne eax, edx
mov dword [edi + 4], eax
test esi, esi
je 0x49c798
cmp byte [esi], 0x23
jne 0x49c794
mov dword [edi], 0x75ae3d2
test esi, esi
jne 0x49c739
push dword [esp + 0x18]
call fcn.005c69b0
add esp, 4
push edi
call fcn.005c69b0
add esp, 4
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esp + 0x14]
lea eax, [esp + 0x64]
mov ecx, edi
push dword [esp + 0x1c]
lea edx, [esp + 0x88]
push 0
push 0
push eax
call fcn.00496bd0
mov esi, eax
add esp, 0x14
cmp esi, str._base:_short_read
jne 0x49c7ef
cmp byte [esp + 0x78], 0
je 0x49c7ef
mov esi, str.png:_truncated_input
jmp 0x49c78e
mov eax, esi
test esi, esi
jne 0x49c7fd
mov dword [edi + 0x160], esi
jmp 0x49c794
cmp byte [esi], 0x24
jne 0x49c789
mov dword [edi + 0x160], 1
mov esi, eax
cmp byte [eax], 0x24
jne 0x49c774
mov cl, 1
jmp 0x49c776