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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x4fc00c]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov eax, dword [edi + 0x74]
test al, 1
je 0x460ad7
mov edx, dword [ebp + 8]
test al, 6
je 0x4607c8
call fcn.0045f3a0
test dword [edi + 0x78], 0x100000
mov ecx, edi
je 0x460ae1
push str.out_of_place
lea edx, [esp + 0x54]
call fcn.00455060
add esp, 4
lea edx, [esp + 0x50]
mov ecx, edi
call fcn.00454fe0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0047d312
mov esp, ebp
pop ebp
ret
cmp edx, 0x20
je 0x4607e8
call fcn.0045f3a0
test dword [edi + 0x78], 0x100000
mov ecx, edi
je 0x460aeb
push str.invalid
jmp 0x46079c
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x460acd
push 0x20
lea ecx, [esp + 0x34]
push ecx
push edi
call eax
mov eax, dword [edi + 0x78]
lea edx, [esp + 0x3c]
add esp, 0xc
test dword [edi + 0x11c], 0x20000000
je 0x460821
and eax, 0x300
cmp eax, 0x300
je 0x46083e
jmp 0x460828
test eax, 0x800
jne 0x46083e
mov ecx, dword [edi + 0x138]
push 0x20
call fcn.0046cd60
add esp, 4
mov dword [edi + 0x138], eax
xor edx, edx
mov ecx, edi
call fcn.0045f3a0
test eax, eax
jne 0x4607b3
movzx ecx, byte [esp + 0x30]
or esi, 0xffffffff
movzx eax, byte [esp + 0x31]
movzx edx, byte [esp + 0x34]
shl ecx, 8
add ecx, eax
movzx eax, byte [esp + 0x32]
shl ecx, 8
add ecx, eax
movzx eax, byte [esp + 0x33]
shl ecx, 8
add ecx, eax
movzx eax, byte [esp + 0x35]
cmp ecx, 0x7fffffff
cmovbe esi, ecx
shl edx, 8
add edx, eax
mov ecx, dword [esp + 0x37]
movzx eax, byte [esp + 0x36]
shl edx, 8
add edx, eax
mov dword [esp + 0x28], esi
shl edx, 8
movzx eax, cl
add edx, eax
or eax, 0xffffffff
cmp edx, 0x7fffffff
cmovbe eax, edx
movzx edx, ch
mov ecx, dword [esp + 0x3b]
shl edx, 8
mov dword [esp + 0x2c], eax
movzx eax, byte [esp + 0x39]
add edx, eax
movzx eax, byte [esp + 0x3a]
shl edx, 8
add edx, eax
movzx eax, cl
shl edx, 8
add edx, eax
or eax, 0xffffffff
cmp edx, 0x7fffffff
cmovbe eax, edx
movzx edx, ch
mov ecx, dword [esp + 0x3f]
shl edx, 8
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x3d]
add edx, eax
movzx eax, byte [esp + 0x3e]
shl edx, 8
add edx, eax
movzx eax, cl
shl edx, 8
add edx, eax
or eax, 0xffffffff
cmp edx, 0x7fffffff
cmovbe eax, edx
movzx edx, ch
mov ecx, dword [esp + 0x43]
shl edx, 8
mov dword [esp + 0x14], eax
movzx eax, byte [esp + 0x41]
add edx, eax
movzx eax, byte [esp + 0x42]
shl edx, 8
add edx, eax
movzx eax, cl
shl edx, 8
add edx, eax
or eax, 0xffffffff
cmp edx, 0x7fffffff
cmovbe eax, edx
movzx edx, ch
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0x45]
shl edx, 8
add edx, eax
movzx eax, byte [esp + 0x46]
shl edx, 8
add edx, eax
mov ecx, dword [esp + 0x47]
shl edx, 8
movzx eax, cl
add edx, eax
or eax, 0xffffffff
cmp edx, 0x7fffffff
cmovbe eax, edx
movzx edx, ch
mov ecx, dword [esp + 0x4b]
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x49]
shl edx, 8
add edx, eax
movzx eax, byte [esp + 0x4a]
shl edx, 8
add edx, eax
movzx eax, cl
shl edx, 8
add edx, eax
movzx ecx, ch
or eax, 0xffffffff
cmp edx, 0x7fffffff
cmovbe eax, edx
shl ecx, 8
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x4d]
add ecx, eax
movzx eax, byte [esp + 0x4e]
shl ecx, 8
add ecx, eax
movzx eax, byte [esp + 0x4f]
shl ecx, 8
add ecx, eax
mov eax, 0xffffffff
cmp ecx, 0x7fffffff
cmovbe eax, ecx
mov dword [esp + 0x24], eax
cmp esi, 0xffffffff
je 0x460ab8
cmp dword [esp + 0x2c], 0xffffffff
je 0x460ab8
cmp dword [esp + 0x10], 0xffffffff
je 0x460ab8
cmp dword [esp + 0x14], 0xffffffff
je 0x460ab8
cmp dword [esp + 0x18], 0xffffffff
je 0x460ab8
cmp dword [esp + 0x1c], 0xffffffff
je 0x460ab8
cmp dword [esp + 0x20], 0xffffffff
je 0x460ab8
cmp eax, 0xffffffff
je 0x460ab8
movzx eax, word [edi + 0x306]
test ax, ax
js 0x4607b3
mov ecx, edi
test al, 0x10
je 0x460a7b
or eax, 0x8000
mov edx, ebx
mov word [edi + 0x306], ax
call fcn.00458370
test dword [edi + 0x78], 0x100000
mov ecx, edi
je 0x460af5
push str.duplicate
jmp 0x46079c
or eax, 0x10
lea edx, [edi + 0x2bc]
mov word [edi + 0x306], ax
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00459190
add esp, 8
mov edx, ebx
mov ecx, edi
call fcn.00458370
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d312
mov esp, ebp
pop ebp
ret
test dword [edi + 0x78], 0x100000
mov ecx, edi
je 0x460aff
push str.invalid_values
jmp 0x46079c
mov edx, str.Call_to_NULL_read_function
call fcn.00454e90
mov edx, str.missing_IHDR
call fcn.00455170
mov edx, str.out_of_place
call fcn.00455170
mov edx, str.invalid
call fcn.00455170
mov edx, str.duplicate
call fcn.00455170
mov edx, str.invalid_values
call fcn.00455170
int3