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

Disassembly:
sub esp, 0x4f8
mov eax, dword [0x49b058]
xor eax, esp
mov dword [esp + 0x4f4], eax
push ebx
mov ebx, dword [esp + 0x500]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [ebx + 0x74]
mov esi, dword [esp + 0x508]
mov dword [esp + 0xc], esi
test al, 1
je 0x46f5c6
test al, 6
je 0x46f083
push dword [esp + 0x50c]
push ebx
call fcn.0046d920
push str.out_of_place
push ebx
call fcn.00462a60
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [esp + 0x4f4]
xor ecx, esp
call fcn.004222d1
add esp, 0x4f8
ret
push ebp
mov ebp, dword [esp + 0x510]
cmp ebp, 0xe
jae 0x46f0bd
push ebp
push ebx
call fcn.0046d920
push str.too_short
push ebx
call fcn.00462a60
add esp, 0x10
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x4f4]
xor ecx, esp
call fcn.004222d1
add esp, 0x4f8
ret
movzx eax, word [ebx + 0x312]
test ax, ax
jns 0x46f0eb
push ebp
push ebx
call fcn.0046d920
add esp, 8
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x4f4]
xor ecx, esp
call fcn.004222d1
add esp, 0x4f8
ret
push edi
mov edi, 0x8000
test al, 4
jne 0x46f577
mov edi, 0x51
lea eax, [esp + 0x2c]
cmp ebp, edi
cmovb edi, ebp
push edi
push eax
push ebx
call fcn.004633a0
push edi
lea eax, [esp + 0x3c]
push eax
push ebx
call fcn.0045e4a0
sub ebp, edi
add esp, 0x18
mov dword [esp + 0x514], ebp
cmp ebp, 0xb
jae 0x46f146
push ebp
push ebx
call fcn.0046d920
push str.too_short
push ebx
call fcn.00462a60
add esp, 0x10
jmp 0x46f5ad
xor esi, esi
lea ecx, [esi + 3]
lea edx, [esi + 1]
nop
cmp esi, edi
jae 0x46f1ac
cmp byte [esp + edx + 0x2b], 0
je 0x46f1ac
cmp edx, edi
jae 0x46f1ab
cmp byte [esp + edx + 0x2c], 0
je 0x46f1ab
lea eax, [ecx - 1]
cmp eax, edi
jae 0x46f1a6
cmp byte [esp + ecx + 0x2b], 0
je 0x46f1a6
cmp ecx, edi
jae 0x46f1a1
cmp byte [esp + ecx + 0x2c], 0
je 0x46f1a1
lea eax, [esi + 4]
cmp eax, edi
jae 0x46f19d
cmp byte [esp + esi + 0x30], 0
je 0x46f19d
add edx, 5
add esi, 5
add ecx, 5
cmp edx, 0x51
jb 0x46f150
jmp 0x46f1ac
mov esi, eax
jmp 0x46f1ac
add esi, 3
jmp 0x46f1ac
add esi, 2
jmp 0x46f1ac
inc esi
lea eax, [esi - 1]
cmp eax, 0x4e
ja 0x46f564
lea eax, [esi + 1]
mov dword [esp + 0x24], eax
cmp eax, edi
jae 0x46f551
cmp byte [esp + esi + 0x2d], 0
jne 0x46f551
push 0x69434350
push ebx
call fcn.00471070
add esp, 8
test eax, eax
jne 0x46f53c
push 0x84
push eax
lea eax, [esp + 0x88]
push eax
call fcn.00439b50
lea eax, [esp + 0x3a]
mov dword [esp + 0x24], 0x84
add eax, esi
sub edi, esi
mov dword [ebx + 0x84], eax
sub edi, 2
push 0
lea eax, [esp + 0x28]
mov dword [ebx + 0x88], edi
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x52c]
push eax
push 0x400
lea eax, [esp + 0x124]
push eax
push ebx
call fcn.00471180
add esp, 0x28
cmp dword [esp + 0x18], 0
jne 0x46f50f
movzx ebp, byte [esp + 0x80]
lea esi, [ebx + 0x2c8]
movzx eax, byte [esp + 0x81]
shl ebp, 8
add ebp, eax
movzx eax, byte [esp + 0x82]
shl ebp, 8
add ebp, eax
movzx eax, byte [esp + 0x83]
shl ebp, 8
add ebp, eax
lea eax, [esp + 0x2c]
push ebp
push eax
push esi
push ebx
call fcn.004601a0
add esp, 0x10
test eax, eax
je 0x46f519
movzx eax, byte [ebx + 0x14f]
push eax
lea eax, [esp + 0x84]
push eax
push ebp
lea eax, [esp + 0x38]
push eax
push esi
push ebx
call fcn.0045fe80
add esp, 0x18
test eax, eax
je 0x46f519
movzx edx, byte [esp + 0x100]
movzx eax, byte [esp + 0x101]
mov edi, dword [ebx + 0x2a4]
shl edx, 8
add edx, eax
mov dword [esp + 0x1c], edi
movzx eax, byte [esp + 0x102]
shl edx, 8
add edx, eax
movzx eax, byte [esp + 0x103]
shl edx, 8
add edx, eax
mov dword [esp + 0x20], edx
test edi, edi
je 0x46f32e
cmp ebp, dword [ebx + 0x2a8]
jbe 0x46f362
push edi
push ebx
mov dword [ebx + 0x2a4], 0
mov dword [ebx + 0x2a8], 0
call fcn.00464700
add esp, 8
push ebp
push ebx
call fcn.00464820
mov edi, eax
mov dword [esp + 0x24], eax
add esp, 8
test edi, edi
je 0x46f505
push ebp
push 0
push edi
call fcn.00439b50
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov dword [ebx + 0x2a4], edi
mov dword [ebx + 0x2a8], ebp
mov ecx, 0x21
lea esi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push 0
push eax
lea esi, [edx + edx*2]
lea eax, [edi + 0x84]
shl esi, 2
push eax
lea eax, [esp + 0x520]
mov dword [esp + 0x24], esi
push eax
push 0x400
lea eax, [esp + 0x118]
push eax
push ebx
call fcn.00471180
add esp, 0x1c
cmp dword [esp + 0x18], 0
jne 0x46f50f
push edi
push ebp
lea eax, [esp + 0x34]
push eax
lea eax, [ebx + 0x2c8]
push eax
push ebx
call fcn.00460200
add esp, 0x14
test eax, eax
je 0x46f519
mov eax, ebp
sub eax, esi
sub eax, 0x84
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 1
push eax
mov eax, dword [esp + 0x28]
lea eax, [eax + eax*2]
lea eax, [eax + 0x21]
lea eax, [edi + eax*4]
push eax
lea eax, [esp + 0x520]
push eax
push 0x400
lea eax, [esp + 0x118]
push eax
push ebx
call fcn.00471180
mov esi, dword [esp + 0x530]
add esp, 0x1c
test esi, esi
je 0x46f435
test dword [ebx + 0x78], 0x100000
jne 0x46f435
mov dword [esp + 0x10], str.extra_compressed_data
jmp 0x46f519
cmp dword [esp + 0x18], 0
jne 0x46f50f
test esi, esi
je 0x46f452
push str.extra_compressed_data
push ebx
call fcn.00462bd0
add esp, 8
push esi
push ebx
call fcn.0046d920
push dword [ebx + 0xb4]
lea eax, [ebx + 0x2c8]
mov dword [esp + 0x34], 1
push edi
push eax
push ebx
call fcn.00460520
mov esi, dword [esp + 0x2c]
add esp, 0x18
test esi, esi
je 0x46f4d6
push 0
push 0x10
push esi
push ebx
call fcn.0045f800
push dword [esp + 0x34]
push ebx
call fcn.00464820
add esp, 0x18
mov dword [esi + 0x74], eax
test eax, eax
je 0x46f4e5
push dword [esp + 0x24]
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.004395d0
or dword [esi + 0xf4], 0x10
or dword [esi + 8], 0x1000
push esi
push ebx
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x78], edi
mov dword [ebx + 0x2a4], 0
call fcn.0045f130
add esp, 0x14
mov dword [ebx + 0x80], 0
jmp 0x46f5ad
push esi
mov edi, 0x8000
mov dword [esp + 0x14], str.out_of_memory
or word [ebx + 0x312], di
push ebx
call fcn.0045f130
add esp, 8
jmp 0x46f522
mov dword [esp + 0x10], str.out_of_memory
jmp 0x46f519
mov eax, dword [ebx + 0x9c]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x14]
mov edi, 0x8000
cmp dword [esp + 0x28], 0
mov dword [ebx + 0x80], 0
jne 0x46f58a
mov ebp, dword [esp + 0x514]
jmp 0x46f580
mov esi, dword [ebx + 0x9c]
mov edi, 0x8000
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
jmp 0x46f580
mov esi, dword [esp + 0x14]
mov edi, 0x8000
mov dword [esp + 0x10], str.bad_compression_method
jmp 0x46f580
mov esi, dword [esp + 0x14]
mov edi, 0x8000
mov dword [esp + 0x10], str.bad_keyword
jmp 0x46f580
mov eax, str.too_many_profiles
mov dword [esp + 0x10], eax
push ebp
push ebx
call fcn.0046d920
add esp, 8
or word [ebx + 0x312], di
push esi
push ebx
call fcn.0045f130
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x46f5ad
push eax
push ebx
call fcn.00462a60
add esp, 8
mov ecx, dword [esp + 0x504]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.004222d1
add esp, 0x4f8
ret
push str.missing_IHDR
push ebx
call fcn.00462ad0
int3