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

Disassembly:
sub esp, 0x50
mov eax, dword [0x58213c]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
mov esi, dword [esp + 0x58]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x482119
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 0x4820da
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 0x4820c0
lea eax, [esp + 0x10]
mov byte [esp + edx + 0x10], 0
push eax
push esi
call fcn.0048f370
add esp, 8
cmp dword [esi + 0x34], 0x49444154
jne 0x482112
mov dword [esi + 0x50], str.in_use_by_IDAT
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00511b56
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 0x482162
test byte [esi + 0x2c], 1
je 0x482154
mov ebx, dword [esi + 0x88]
jmp 0x48218c
xor ebx, ebx
cmp byte [esi + 0x102], 8
setne bl
jmp 0x48218c
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 0x4821b7
lea ecx, [edi - 1]
mov eax, 1
shl eax, cl
lea ecx, [edx + 0x106]
cmp ecx, eax
ja 0x4821b7
nop dword [eax]
shr eax, 1
dec edi
cmp ecx, eax
jbe 0x4821b0
mov eax, dword [esi + 0x2c]
mov edx, dword [esp + 0x10]
test al, 2
je 0x482252
cmp dword [esi + 0xa0], edx
jne 0x4821f6
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0xa4], ecx
jne 0x4821f6
cmp dword [esi + 0xa8], edi
jne 0x4821f6
mov ecx, dword [esp + 0x14]
cmp dword [esi + 0xac], ecx
jne 0x4821f6
cmp dword [esi + 0xb0], ebx
je 0x482252
lea eax, [esi + 0x38]
push eax
call fcn.0042b230
add esp, 4
test eax, eax
je 0x482247
mov eax, dword [esi + 4]
push str.deflateEnd_failed__ignored_
test eax, eax
je 0x482217
push esi
call eax
jmp 0x482244
push str.libpng_warning:__s
push 2
call fcn.00517337
add esp, 4
push eax
call fcn.0049efa0
add esp, 0xc
push 0x54fba4
push 2
call fcn.00517337
add esp, 4
push eax
call fcn.0049efa0
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 0x4822a3
push ecx
call fcn.0042b720
mov edi, eax
add esp, 4
test edi, edi
je 0x4822c8
push edi
push esi
call fcn.00493240
add esp, 8
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00511b56
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.0042b300
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x482284
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.00511b56
add esp, 0x50
ret