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

Disassembly:
sub esp, 0x50
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
mov esi, dword [esp + 0x60]
mov ebp, 0xff
push edi
mov edi, 0x55
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x54], 0x49
mov byte [esp + 0x55], 0x44
mov byte [esp + 0x56], 0x41
mov byte [esp + 0x57], 0x54
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], 0x33
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x1c], 0x80
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 0x88
mov dword [esp + 0x28], 0x22
mov dword [esp + 0x2c], 0xaa
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
test esi, esi
je 0x10042889
test byte [esi + 0x70], 0x40
jne 0x100424db
call fcn.10049b00
cmp byte [esi + 0x123], 0
je 0x100425e0
test byte [esi + 0x74], 2
je 0x100425e0
movzx eax, byte [esi + 0x124]
cmp eax, 5
ja case.default.0x10042502
jmp dword [eax*4 + 0x1004289c]
test byte [esi + 0xe4], 7
je 0x100425e0
test ebx, ebx
je 0x10042527
push ebp
mov edx, ebx
mov eax, esi
call fcn.10048f50
add esp, 4
mov ecx, esi
call fcn.10049830
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.1007b2de
add esp, 0x50
ret
test byte [esi + 0xe4], 7
jne 0x10042557
cmp dword [esi + 0xcc], 5
jae 0x100425e0
test ebx, ebx
je 0x10042527
push 0xf
jmp 0x1004251b
mov eax, dword [esi + 0xe4]
mov ecx, eax
and cl, 7
cmp cl, 4
je 0x100425e0
test ebx, ebx
je 0x10042527
test al, 4
jmp 0x10042518
mov eax, 3
test byte [esi + 0xe4], al
jne 0x1004258c
cmp dword [esi + 0xcc], eax
jae 0x100425e0
test ebx, ebx
je 0x10042527
push 0x33
jmp 0x1004251b
mov eax, dword [esi + 0xe4]
mov edx, eax
and dl, 3
cmp dl, 2
je 0x100425e0
test ebx, ebx
je 0x10042527
test al, 2
jmp 0x10042518
test byte [esi + 0xe4], 1
jne 0x100425c5
cmp dword [esi + 0xcc], 2
jae 0x100425e0
test ebx, ebx
je 0x10042527
push edi
jmp 0x1004251b
test byte [esi + 0xe4], 1
je 0x10042527
test byte [esi + 0x6c], 4
jne 0x100425f1
push str.Invalid_attempt_to_read_row_data
push esi
call sym.XGUS.dll_png_error
mov eax, dword [esi + 0xec]
mov dword [esi + 0x84], eax
mov al, byte [esi + 0x129]
cmp al, 8
movzx eax, al
jb 0x10042616
shr eax, 3
imul eax, dword [esi + 0xe0]
jmp 0x10042623
imul eax, dword [esi + 0xe0]
add eax, 7
shr eax, 3
mov ebp, dword [esp + 0x54]
inc eax
mov dword [esi + 0x88], eax
mov edi, edi
cmp dword [esi + 0x7c], 0
jne 0x1004269b
cmp dword [esi + 0x10c], 0
jne 0x10042667
nop
push 0
mov ecx, esi
call fcn.100461b0
add esp, 4
call fcn.10046050
mov dword [esi + 0x10c], eax
cmp dword [esi + 0x11c], ebp
jne 0x10042711
test eax, eax
je 0x10042640
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 0x10042686
mov dword [esi + 0x7c], ecx
mov ebx, dword [esi + 0x7c]
call fcn.10046140
mov ecx, dword [esi + 0x7c]
sub dword [esi + 0x10c], ecx
mov ebx, dword [esp + 0x18]
lea edx, [esi + 0x78]
push 1
push edx
call fcn.10078dc0
add esp, 8
cmp eax, 1
je 0x1004271c
test eax, eax
jne 0x1004274f
cmp dword [esi + 0x88], eax
jne 0x10042630
movzx eax, byte [esi + 0x126]
mov ecx, dword [esi + 0xe0]
mov dl, byte [esi + 0x12a]
mov byte [esi + 0x108], al
movzx eax, byte [esi + 0x127]
mov byte [esi + 0x109], al
mov al, byte [esi + 0x129]
lea edi, [esi + 0x100]
mov byte [esi + 0x10b], al
cmp al, 8
mov dword [edi], ecx
mov byte [esi + 0x10a], dl
movzx eax, al
jb 0x10042765
shr eax, 3
imul eax, ecx
jmp 0x1004276e
push str.Not_enough_image_data
push esi
call sym.XGUS.dll_png_error
cmp dword [esi + 0x88], 0
jne 0x10042734
cmp dword [esi + 0x7c], 0
jne 0x10042734
cmp dword [esi + 0x10c], 0
je 0x10042742
push str.Extra_compressed_data
push esi
call sym.XGUS.dll_png_benign_error
add esp, 8
or dword [esi + 0x6c], 8
or dword [esi + 0x70], 0x20
jmp 0x100426c2
mov eax, dword [esi + 0x90]
test eax, eax
jne 0x1004275e
mov eax, str.Decompression_error
push eax
push esi
call sym.XGUS.dll_png_error
imul eax, ecx
add eax, 7
shr eax, 3
mov ecx, dword [esi + 0xec]
mov dword [esi + 0x104], eax
mov al, byte [ecx]
test al, al
je 0x10042797
mov edx, dword [esi + 0xe8]
inc edx
push edx
movzx eax, al
inc ecx
push esi
mov edx, edi
call fcn.100496a0
add esp, 8
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xec]
mov edx, dword [esi + 0xe8]
inc eax
push eax
push ecx
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
test byte [esi + 0x230], 4
je 0x100427d5
cmp byte [esi + 0x234], 0x40
jne 0x100427d5
mov ecx, dword [esi + 0xec]
inc ecx
mov eax, edi
call fcn.1004ec60
cmp dword [esi + 0x74], 0
je 0x100427e4
push esi
call fcn.1004ba40
add esp, 4
cmp byte [esi + 0x123], 0
je 0x10042837
test byte [esi + 0x74], 2
je 0x10042837
cmp byte [esi + 0x124], 6
jae 0x10042805
push esi
call fcn.10049240
add esp, 4
test ebx, ebx
je 0x10042821
movzx eax, byte [esi + 0x124]
mov ecx, dword [esp + eax*4 + 0x38]
push ecx
mov edx, ebx
mov eax, esi
call fcn.10048f50
add esp, 4
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10042863
movzx eax, byte [esi + 0x124]
mov ecx, dword [esp + eax*4 + 0x1c]
push ecx
jmp 0x10042859
mov edx, dword [esp + 0x14]
test edx, edx
je 0x1004284e
push 0xff
mov eax, esi
call fcn.10048f50
add esp, 4
test ebx, ebx
je 0x10042863
push 0xff
mov edx, ebx
mov eax, esi
call fcn.10048f50
add esp, 4
mov ecx, esi
call fcn.10049830
mov eax, dword [esi + 0x198]
test eax, eax
je 0x10042889
movzx edx, byte [esi + 0x124]
mov ecx, dword [esi + 0xe4]
push edx
push ecx
push esi
call eax
add esp, 0xc
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007b2de
add esp, 0x50
ret