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

Disassembly:
sub esp, 0x80
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, 4
push ebp
mov edx, 1
push esi
mov esi, ecx
add dword [esi + 0xe4], edx
mov ecx, 2
mov ebp, 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xe4]
push edi
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
cmp eax, dword [esi + 0xd4]
jb 0x10049aa0
cmp byte [esi + 0x123], 0
push ebx
je 0x10049986
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xe8]
add eax, edx
push eax
push edi
push ecx
mov dword [esi + 0xe4], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x10049918
xor edi, edi
lea ebp, [edi + 8]
inc byte [esi + 0x124]
mov bl, byte [esi + 0x124]
cmp bl, 7
jae 0x10049986
mov edx, dword [esi + 0xcc]
movzx ecx, bl
add ecx, ecx
add ecx, ecx
sub edx, dword [esp + ecx + 0x30]
mov edi, dword [esp + ecx + 0x14]
lea eax, [edx + edi - 1]
xor edx, edx
div edi
test byte [esi + 0x74], 2
mov ebp, eax
mov dword [esi + 0xe0], ebp
jne 0x10049978
mov eax, dword [esi + 0xd0]
sub eax, dword [esp + ecx + 0x68]
mov edi, dword [esp + ecx + 0x4c]
xor edx, edx
lea eax, [eax + edi - 1]
div edi
mov dword [esi + 0xd4], eax
test eax, eax
je 0x10049913
test ebp, ebp
je 0x10049913
cmp bl, 7
jb 0x10049a9f
xor edi, edi
lea ebp, [edi + 8]
test byte [esi + 0x70], 0x20
jne 0x10049a79
lea ecx, [esp + 0x13]
mov byte [esp + 0x84], 0x49
mov byte [esp + 0x85], 0x44
mov byte [esp + 0x86], 0x41
mov byte [esp + 0x87], 0x54
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], 1
cmp dword [esi + 0x7c], edi
jne 0x10049a33
cmp dword [esi + 0x10c], edi
jne 0x100499fe
push edi
mov ecx, esi
call fcn.100461b0
add esp, 4
call fcn.10046050
mov edx, dword [esp + 0x84]
mov dword [esi + 0x10c], eax
cmp dword [esi + 0x11c], edx
jne 0x10049ab8
cmp eax, edi
je 0x100499d1
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x10c]
mov edi, dword [esi + 0xb0]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], edi
cmp eax, ecx
jbe 0x10049a1d
mov dword [esi + 0x7c], ecx
mov ebx, dword [esi + 0x7c]
call fcn.10046140
mov eax, dword [esi + 0x7c]
sub dword [esi + 0x10c], eax
xor edi, edi
lea ebp, [edi + 8]
lea ecx, [esi + 0x78]
push 1
push ecx
call fcn.10078dc0
add esp, 8
cmp eax, 1
je 0x10049ac3
cmp eax, edi
jne 0x10049ada
cmp dword [esi + 0x88], edi
jne 0x100499c4
push str.Extra_compressed_data
push esi
call sym.XGUS.dll_png_warning
add esp, 8
or dword [esi + 0x6c], ebp
or dword [esi + 0x70], 0x20
mov dword [esi + 0x88], edi
cmp dword [esi + 0x10c], edi
jne 0x10049a86
cmp dword [esi + 0x7c], edi
je 0x10049a94
push str.Extra_compression_data
push esi
call sym.XGUS.dll_png_warning
add esp, 8
lea edx, [esi + 0x78]
call fcn.10078b90
or dword [esi + 0x6c], ebp
pop ebx
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1007b2de
add esp, 0x80
ret
push str.Not_enough_image_data
push esi
call sym.XGUS.dll_png_error
cmp dword [esi + 0x88], edi
je 0x10049a5e
cmp dword [esi + 0x7c], edi
jne 0x10049a5e
cmp dword [esi + 0x10c], edi
je 0x10049a6c
jmp 0x10049a5e
mov eax, dword [esi + 0x90]
cmp eax, edi
jne 0x10049ae9
mov eax, str.Decompression_Error
push eax
push esi
call sym.XGUS.dll_png_error
int3