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

Disassembly:
sub esp, 0x50
mov eax, dword [0x58313c]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
mov esi, dword [esp + 0x58]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x4827e9
mov edx, dword [esp + 0x5c]
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x10], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x11], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x12], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x16], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x17], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x13], dl
mov edx, 0xa
mov word [esp + 0x14], 0x203a
mov byte [esp + 0x18], al
mov byte [esp + 0x19], cl
nop dword [eax]
cmp edx, 0x3f
jae 0x4827aa
mov ecx, str._using_zstream
mov al, byte [ecx + edx - 0xa]
mov byte [esp + edx + 0x10], al
inc edx
cmp byte [ecx + edx - 0xa], 0
jne 0x482790
lea eax, [esp + 0x10]
mov byte [esp + edx + 0x10], 0
push eax
push esi
call fcn.0048fa40
add esp, 8
cmp dword [esi + 0x34], 0x49444154
jne 0x4827e2
mov dword [esi + 0x50], str.in_use_by_IDAT
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00512b0b
add esp, 0x50
ret
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x78]
push ebx
mov dword [esp + 8], eax
mov eax, dword [esi + 0x7c]
push ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x84]
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esi + 0x80]
cmp ebp, 0x49444154
jne 0x482832
test byte [esi + 0x2c], 1
je 0x482824
mov ebx, dword [esi + 0x88]
jmp 0x48285c
xor ebx, ebx
cmp byte [esi + 0x102], 8
setne bl
jmp 0x48285c
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x94]
mov ebx, dword [esi + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x90]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x98]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x6c]
cmp edx, 0x4000
ja 0x482887
lea ecx, [edi - 1]
mov eax, 1
shl eax, cl
lea ecx, [edx + 0x106]
cmp ecx, eax
ja 0x482887
nop dword [eax]
shr eax, 1
dec edi
cmp ecx, eax
jbe 0x482880
mov eax, dword [esi + 0x2c]
mov edx, dword [esp + 0x10]
test al, 2
je 0x482922
cmp dword [esi + 0xa0], edx
jne 0x4828c6
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0xa4], ecx
jne 0x4828c6
cmp dword [esi + 0xa8], edi
jne 0x4828c6
mov ecx, dword [esp + 0x14]
cmp dword [esi + 0xac], ecx
jne 0x4828c6
cmp dword [esi + 0xb0], ebx
je 0x482922
lea eax, [esi + 0x38]
push eax
call fcn.0042b8f0
add esp, 4
test eax, eax
je 0x482917
mov eax, dword [esi + 4]
push str.deflateEnd_failed__ignored_
test eax, eax
je 0x4828e7
push esi
call eax
jmp 0x482914
push str.libpng_warning:__s
push 2
call fcn.005182fa
add esp, 4
push eax
call fcn.0049f680
add esp, 0xc
push 0x550bfc
push 2
call fcn.005182fa
add esp, 4
push eax
call fcn.0049f680
add esp, 8
and dword [esi + 0x2c], 0xfffffffd
mov eax, dword [esi + 0x2c]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x38], 0
lea ecx, [esi + 0x38]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
test al, 2
je 0x482973
push ecx
call fcn.0042bde0
mov edi, eax
add esp, 4
test edi, edi
je 0x482998
push edi
push esi
call fcn.00493910
add esp, 8
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00512b0b
add esp, 0x50
ret
push 0x38
push str.1.2.3
push ebx
push dword [esp + 0x20]
push edi
push dword [esp + 0x2c]
push edx
push ecx
call fcn.0042b9c0
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x482954
or dword [esi + 0x2c], 2
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
mov dword [esi + 0x34], ebp
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.00512b0b
add esp, 0x50
ret