Function at 0x46c320
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x170
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebx
mov ebx, dword [esp + 0x17c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x184]
cmp ebx, 0x80
jb 0x46c5fc
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x150]
push eax
push 0x40
lea eax, [esp + 0x20]
mov dword [esp + 0x158], 0
push eax
push edi
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call esi
cmp dword [esp + 0x150], 0x40
jne 0x46c5fc
mov eax, 0x5a4d
cmp word [esp + 0x18], ax
jne 0x46c5fc
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x150]
push ecx
push 0xf8
lea ecx, [esp + 0x60]
mov dword [esp + 0x158], 0
add eax, edi
push ecx
push eax
call ebp
push eax
call esi
cmp dword [esp + 0x150], 0xf8
jne 0x46c5fc
cmp dword [esp + 0x58], 0x4550
jne 0x46c5fc
movzx ecx, word [esp + 0x6c]
xor eax, eax
mov edx, dword [esp + 0x54]
add ecx, edi
add edx, 0x18
mov dword [esp + 0x10], 0
add edx, ecx
mov dword [esp + 0x14], edx
cmp ax, word [esp + 0x5e]
jae 0x46c5fc
nop dword [eax]
lea eax, [esp + 0x150]
mov dword [esp + 0x150], 0
push eax
push 0x28
lea eax, [esp + 0x15c]
push eax
push edx
call ebp
push eax
call esi
cmp dword [esp + 0x150], 0x28
jne 0x46c5db
lea ecx, [esp + 0x154]
mov eax, str..bind
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46c470
test dl, dl
je 0x46c46c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46c470
add eax, 2
add ecx, 2
test dl, dl
jne 0x46c450
xor eax, eax
jmp 0x46c475
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46c5db
mov ebp, dword [0x66aa3c]
mov esi, dword [esp + 0x168]
push ebp
push dword [0x66aa38]
push esi
push ebx
push edi
call fcn.0046ad80
add esp, 0x14
cmp eax, 0xffffffff
jne 0x46c61e
push ebp
push dword [0x66aa38]
push esi
push ebx
push edi
call fcn.0046ad80
add esp, 0x14
cmp eax, 0xffffffff
jne 0x46c61e
push dword [0x66aa44]
push dword [0x66aa40]
push esi
push ebx
push edi
call fcn.0046ad80
add esp, 0x14
cmp eax, 0xffffffff
je 0x46c5cf
push dword [0x66aa4c]
push dword [0x66aa48]
push esi
push ebx
push edi
call fcn.0046ad80
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x46c5cf
push dword [0x66aa54]
lea ebp, [esi + 9]
push dword [0x66aa50]
push esi
push ebx
push edi
call fcn.0046ad80
add esp, 0x14
cmp eax, ebp
jne 0x46c53e
push dword [0x66aa5c]
push dword [0x66aa58]
push esi
push ebx
push edi
call fcn.0046ad80
lea ecx, [esi + 0xf]
add esp, 0x14
cmp eax, ecx
je 0x46c5b6
push dword [0x66aa64]
push dword [0x66aa60]
push esi
push ebx
push edi
call fcn.0046ad80
add esp, 0x14
cmp eax, ebp
jne 0x46c57d
push dword [0x66aa6c]
push dword [0x66aa68]
push esi
push ebx
push edi
call fcn.0046ad80
lea ecx, [esi + 0xf]
add esp, 0x14
cmp eax, ecx
jne 0x46c57d
mov eax, dword [edi + esi + 0x16]
jmp 0x46c5ba
push dword [0x66aa74]
push dword [0x66aa70]
push esi
push ebx
push edi
call fcn.0046ad80
add esp, 0x14
cmp eax, ebp
jne 0x46c5cf
push dword [0x66aa7c]
push dword [0x66aa78]
push esi
push ebx
push edi
call fcn.0046ad80
lea ecx, [esi + 0x14]
add esp, 0x14
cmp eax, ecx
jne 0x46c5cf
mov eax, dword [edi + esi + 0x10]
cmp eax, 0xb0
je 0x46c617
cmp eax, 0xd0
je 0x46c617
cmp eax, 0xf0
je 0x46c617
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
inc ecx
movzx eax, word [esp + 0x5e]
add edx, 0x28
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
cmp ecx, eax
jl 0x46c410
xor eax, eax
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059a5ad
add esp, 0x170
ret
mov eax, 3
jmp 0x46c5fe
mov eax, 2
jmp 0x46c5fe