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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x68]
mov eax, dword [edi + 0x29c]
test eax, eax
je 0x46efa4
cmp eax, 1
je 0x46f195
sub eax, 1
cmp eax, 1
mov dword [edi + 0x29c], eax
je 0x46f1a3
mov eax, dword [edi + 0x78]
test al, 1
je 0x46f23e
test al, 4
jne 0x46f161
lea edx, [ebx + 1]
mov ecx, 1
mov eax, edi
call fcn.0046bf10
test eax, eax
mov esi, eax
je 0x46f177
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.0046c4f0
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.0046c720
test eax, eax
jne 0x46f159
test ebx, ebx
je 0x46f148
cmp byte [esi], 0
jne 0x46f019
jmp 0x46f148
cmp byte [esi + eax + 1], 0
je 0x46f020
mov eax, edx
lea edx, [eax + 1]
cmp edx, ebx
jne 0x46f010
cmp eax, 0x4e
ja 0x46f148
lea edx, [eax + 6]
cmp ebx, edx
jb 0x46f170
movzx ecx, byte [esi + eax + 2]
test cl, cl
je 0x46f056
cmp cl, 1
mov edx, str.bad_compression_info
jne 0x46f14d
cmp byte [esi + eax + 3], 0
jne 0x46f14d
test cl, cl
lea ecx, [eax + 4]
setne byte [esp + 0x17]
cmp ebx, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], ecx
jbe 0x46f219
cmp byte [esi + eax + 4], 0
je 0x46f219
mov eax, ecx
jmp 0x46f089
cmp byte [esi + eax], 0
je 0x46f090
add eax, 1
cmp ebx, eax
ja 0x46f083
lea ecx, [eax + 1]
cmp ebx, ecx
mov dword [esp + 0x1c], ecx
jbe 0x46f210
cmp byte [esi + eax + 1], 0
je 0x46f210
mov ebp, ecx
jmp 0x46f0b6
cmp byte [esi + ebp], 0
je 0x46f0bd
add ebp, 1
cmp ebx, ebp
ja 0x46f0b0
add ebp, 1
cmp ebp, ebx
ja 0x46f1c1
cmp byte [esp + 0x17], 0
jne 0x46f1c1
sub ebx, ebp
mov dword [esp + 0x20], ebx
add ebp, esi
cmp byte [esp + 0x17], 0
mov byte [ebp + ebx], 0
je 0x46f222
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], esi
mov dword [esp + 0xc], 1
mov dword [esp], edi
add eax, esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
add esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3c], esi
mov dword [esp + 4], eax
call fcn.00462090
test eax, eax
je 0x46f159
mov edx, 0x5408be
jmp 0x46f14d
mov edx, str.bad_keyword
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.00459c00
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
or eax, 8
mov dword [edi + 0x78], eax
jmp 0x46efb7
mov edx, str.truncated
jmp 0x46f14d
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0046c720
mov dword [esp + 4], 0x5406ef
mov dword [esp], edi
call fcn.00459c00
jmp 0x46f159
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0046c720
jmp 0x46f159
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0046c720
mov dword [esp + 4], str.no_space_in_chunk_cache
mov dword [esp], edi
call fcn.00459c00
jmp 0x46f159
cmp ebp, ebx
jae 0x46f170
cmp byte [esp + 0x17], 0
je 0x46f170
lea eax, [esp + 0x20]
mov ecx, ebp
mov dword [esp], eax
mov edx, ebx
mov eax, edi
mov dword [esp + 0x20], 0xffffffff
call fcn.0046c0d0
cmp eax, 1
je 0x46f22f
mov edx, dword [edi + 0xa0]
test edx, edx
jne 0x46f14d
mov eax, dword [esp + 0x20]
add ebp, esi
add eax, ebp
mov byte [eax], 0
jmp 0x46f0eb
mov ebp, dword [esp + 0x1c]
jmp 0x46f0bd
mov eax, dword [esp + 0x18]
jmp 0x46f090
mov dword [esp + 0x24], 2
jmp 0x46f0f3
mov esi, dword [edi + 0x2bc]
mov ebx, dword [esp + 0x20]
jmp 0x46f0d9
mov dword [esp + 4], str.missing_IHDR
mov dword [esp], edi
call fcn.00459bb0
nop