Function at 0x46e310
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x184
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 0x180], eax
cmp dword [esp + 0x18c], 0x80
push ebx
push ebp
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x198]
mov dword [esp + 0x10], edi
jb 0x46e5ff
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 ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call ebx
cmp dword [esp + 0x150], 0x40
jne 0x46e5ff
mov eax, 0x5a4d
cmp word [esp + 0x18], ax
jne 0x46e5ff
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 ebx
cmp dword [esp + 0x150], 0xf8
jne 0x46e5ff
cmp dword [esp + 0x58], 0x4550
jne 0x46e5ff
mov eax, dword [esp + 0x60]
lea edx, [esi + 8]
mov dword [esi], eax
lea eax, [edx + 0x28]
cmp eax, edx
mov dword [esi + 4], 0
sbb ecx, ecx
and ecx, 0xfffffff6
add ecx, 0xa
cmp edx, eax
ja 0x46e404
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea edx, [esi + 0x30]
lea eax, [edx + 0x10]
mov dword [esp + 0x14], edx
cmp eax, edx
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 4
cmp edx, eax
ja 0x46e422
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
movzx ecx, word [esp + 0x6c]
xor eax, eax
mov ebx, dword [esp + 0x54]
xor edi, edi
mov edx, dword [esp + 0x10]
add ebx, 0x18
add ecx, edx
add ebx, ecx
cmp ax, word [esp + 0x5e]
jae 0x46e5d9
lea eax, [esp + 0x150]
mov dword [esp + 0x150], 0
push eax
push 0x28
lea eax, [esp + 0x15c]
push eax
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [esp + 0x150], 0x28
jne 0x46e5c4
lea eax, [esp + 0x154]
mov ecx, str..text
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x46e4a6
test dl, dl
je 0x46e4a2
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x46e4a6
add ecx, 2
add eax, 2
test dl, dl
jne 0x46e486
xor eax, eax
jmp 0x46e4ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46e4b9
mov eax, dword [esp + 0x164]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x160]
cmp ecx, edx
jb 0x46e5c4
mov eax, dword [esp + 0x15c]
add eax, edx
cmp ecx, eax
ja 0x46e5c4
mov eax, dword [esp + 0x10]
sub eax, edx
mov dword [esp + 0x150], 0
add eax, dword [esp + 0x168]
add eax, ecx
lea ecx, [esp + 0x150]
push ecx
push 0x14
lea ecx, [esp + 0x184]
push ecx
push eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [esp + 0x150], 0x14
jne 0x46e5c4
movzx eax, word [esp + 0x17c]
xor eax, 0x4141
mov dword [esi + 8], eax
movzx eax, word [esp + 0x17e]
xor eax, 0x4242
mov dword [esi + 0xc], eax
movzx eax, word [esp + 0x180]
xor eax, 0x4343
mov dword [esi + 0x10], eax
movzx eax, word [esp + 0x182]
xor eax, 0x4444
mov dword [esi + 0x14], eax
movzx eax, word [esp + 0x184]
xor eax, 0x4545
mov dword [esi + 0x18], eax
movzx eax, word [esp + 0x186]
xor eax, 0x4646
mov dword [esi + 0x1c], eax
movzx eax, word [esp + 0x188]
xor eax, 0x4747
mov dword [esi + 0x20], eax
movzx eax, word [esp + 0x18a]
xor eax, 0x4848
mov dword [esi + 0x24], eax
movzx eax, word [esp + 0x18c]
xor eax, 0x4949
mov dword [esi + 0x28], eax
movzx eax, word [esp + 0x18e]
xor eax, 0x4a4a
mov dword [esi + 0x2c], eax
movzx eax, word [esp + 0x5e]
inc edi
add ebx, 0x28
cmp edi, eax
jl 0x46e445
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x19c]
cmp eax, 0x800000
jae 0x46e5fb
push 0
push 0
push dword [esp + 0x1c]
push 0
push eax
push edx
call fcn.0043ea10
add esp, 0x18
mov al, 1
jmp 0x46e601
xor al, al
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059a5ad
add esp, 0x184
ret