Function at 0x46d1e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x4f85e8]
xor eax, ebp
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0x14]
add eax, 0x1b8
mov dword [ebp - 0x144], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x144]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
push eax
call 0x7a7d07
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x46d234
xor eax, eax
jmp 0x46d53a
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x168], 0
push 0x40
push 0
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.00456760
add esp, 0xc
mov edx, 0x5a4d
mov word [ebp - 0x1a8], dx
mov dword [ebp - 0x16c], 0x40
lea eax, [ebp - 0x168]
push eax
push 0x40
lea ecx, [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp + 8]
push eax
push edi
call 0x56a084
test eax, eax
je 0x46d2a1
cmp dword [ebp - 0x168], 0x40
je 0x46d2a8
xor eax, eax
jmp 0x46d53a
mov ecx, dword [ebp - 0xfc]
add ecx, 0x40
mov dword [ebp - 0xfc], ecx
push 0xf8
push 0
lea edx, [ebp - 0xf8]
push edx
call fcn.00456760
add esp, 0xc
mov dword [ebp - 0xf8], 0x4550
mov eax, 0xe0
mov word [ebp - 0xe4], ax
mov ecx, 0x2000
mov word [ebp - 0xe2], cx
mov edx, 1
mov word [ebp - 0xf2], dx
mov eax, 0x10b
mov word [ebp - 0xe0], ax
lea ecx, [ebp - 0x168]
push ecx
push 0xf8
lea edx, [ebp - 0xf8]
push edx
mov eax, dword [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push eax
call 0x63ddd9
test eax, eax
je 0x46d33b
cmp dword [ebp - 0x168], 0xf8
je 0x46d342
xor eax, eax
jmp 0x46d53a
mov edx, dword [ebp - 0xfc]
add edx, 0xf8
mov dword [ebp - 0xfc], edx
push 0x28
push 0
lea eax, [ebp - 0x1d0]
push eax
call fcn.00456760
add esp, 0xc
push 8
push str..detour
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0045c490
add esp, 0xc
mov edx, dword [ebp - 0xfc]
add edx, 0x28
sub edx, dword [ebp - 0x148]
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp + 0x14]
add eax, 0x58
mov dword [ebp - 0x1c0], eax
lea ecx, [ebp - 0x168]
push ecx
push 0x28
lea edx, [ebp - 0x1d0]
push edx
mov eax, dword [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push ebx
call 0x780080
test eax, eax
je 0x46d3cc
cmp dword [ebp - 0x168], 0x28
je 0x46d3d3
xor eax, eax
jmp 0x46d53a
mov edx, dword [ebp - 0xfc]
add edx, 0x28
mov dword [ebp - 0xfc], edx
push 0x40
push 0
lea eax, [ebp - 0x140]
push eax
call fcn.00456760
add esp, 0xc
mov dword [ebp - 0x140], 0x40
mov dword [ebp - 0x13c], 0x727444
mov dword [ebp - 0x138], 0x40
mov ecx, dword [ebp + 0x14]
add ecx, 0x58
mov dword [ebp - 0x134], ecx
lea edx, [ebp - 0x168]
push edx
push 0x40
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0xfc]
push ecx
mov edx, dword [ebp + 8]
push edx
push eax
call 0x7892ce
test eax, eax
je 0x46d44d
cmp dword [ebp - 0x168], 0x40
je 0x46d454
xor eax, eax
jmp 0x46d53a
mov eax, dword [ebp - 0xfc]
add eax, 0x40
mov dword [ebp - 0xfc], eax
push 0x18
push 0
lea ecx, [ebp - 0x164]
push ecx
call fcn.00456760
add esp, 0xc
mov edx, dword [ebp + 0x14]
add edx, 0x18
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x15c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x158], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x154], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x150], edx
lea eax, [ebp - 0x168]
push eax
push 0x18
lea ecx, [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp + 8]
push eax
call 0x58df2c
mov ecx, dword [ebp - 0x14c]
xor ecx, ebp
call fcn.00451edd
mov esp, ebp
pop ebp
ret 0x10