Function at 0x413c80
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x8f8
mov eax, dword [0x44804c]
xor eax, esp
mov dword [esp + 0x8f4], eax
mov eax, dword [esp + 0x900]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
xor ebx, ebx
push esi
mov dword [esp + 0x1c], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x90c]
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
nop
push 0x1c
lea eax, [esp + 0x6fc]
mov dword [esp + 0x714], 0
push eax
add esi, 0x10000
xorps xmm0, xmm0
push esi
push edi
movups xmmword [esp + 0x708], xmm0
movq qword [esp + 0x718], xmm0
call ebp
test eax, eax
je 0x413d7d
nop dword [eax + eax]
mov ecx, dword [esp + 0x704]
mov eax, ecx
and eax, 0xfff
cmp eax, 0xfff
je 0x413d7d
mov edx, dword [esp + 0x6f8]
lea eax, [ecx + edx]
cmp eax, esi
jb 0x413d7d
cmp dword [esp + 0x708], 0x1000
jne 0x413d68
cmp byte [esp + 0x70c], 1
je 0x413d68
test dword [esp + 0x70c], 0x100
jne 0x413d68
lea eax, [esp + 0x714]
push eax
push esi
push edi
call fcn.00412e90
test eax, eax
jne 0x413d99
mov ecx, dword [esp + 0x704]
mov edx, dword [esp + 0x6f8]
push 0x1c
lea eax, [esp + 0x6fc]
push eax
lea esi, [ecx + edx]
push esi
push edi
call ebp
test eax, eax
jne 0x413d00
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x413e0a
push 0x10dd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41411d
test esi, esi
je 0x413d7d
test dword [esp + 0x72a], 0x2000
jne 0x413ddb
mov eax, 0x10b
mov ebx, esi
cmp word [esp + 0x72c], ax
jne 0x413cc0
cmp word [esp + 0x718], 0
je 0x413cc0
mov dword [esp + 0x1c], 1
jmp 0x413cc0
mov eax, 0x20b
cmp word [esp + 0x72c], ax
jne 0x413cc0
cmp word [esp + 0x718], 0
je 0x413cc0
mov dword [esp + 0x14], 1
jmp 0x413cc0
cmp dword [esp + 0x1c], 0
jne 0x413e19
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x413e43
cmp dword [esp + 0x14], 0
jne 0x413e2b
mov ebx, 1
mov dword [esp + 0x18], ebx
jmp 0x413e43
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x41411d
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push 0x1c
push eax
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
push ecx
push edi
movups xmmword [esp + 0x34], xmm0
movq qword [esp + 0x44], xmm0
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, eax
je 0x414116
mov ebp, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [esp + 0x40]
push 0
push 0x40
push eax
push dword [esp + 0x1c]
push edi
call ebp
test eax, eax
je 0x414116
mov eax, 0x5a4d
cmp word [esp + 0x40], ax
jne 0x41410f
mov eax, dword [esp + 0x7c]
cmp eax, dword [esp + 0x30]
ja 0x41410f
cmp eax, 0x40
jb 0x41410f
add eax, dword [esp + 0x10]
lea ecx, [esp + 0x80c]
push 0
push 0xf8
push ecx
push eax
push edi
call ebp
test eax, eax
je 0x414116
cmp dword [esp + 0x80c], 0x4550
jne 0x41410f
push 0x678
lea eax, [esp + 0x84]
push 0
push eax
call fcn.00416900
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0xa8]
add esp, 0xc
mov dword [esp + 0x80], 0x678
mov dword [esp + 0x90], esi
mov dword [esp + 0x84], 0x40
push 0
push 0x40
push eax
push esi
push edi
call ebp
test eax, eax
je 0x41411d
mov eax, dword [esp + 0xd8]
lea ecx, [esp + 0xdc]
add eax, dword [esp + 0x90]
push 0
push 0x18
push ecx
push eax
push edi
mov dword [esp + 0xa8], eax
mov dword [esp + 0x9c], 0x18
call ebp
test eax, eax
je 0x41411d
movzx eax, word [esp + 0xe2]
lea ecx, [eax + eax*4]
movzx eax, word [esp + 0xf0]
lea eax, [eax + ecx*8]
add eax, 0x18
mov dword [esp + 0x88], eax
cmp eax, 0x608
ja 0x41411d
push 0
push eax
lea eax, [esp + 0xe4]
push eax
push dword [esp + 0xa0]
push edi
call ebp
test eax, eax
je 0x41411d
mov ax, word [esp + 0xf4]
mov ecx, 0x10b
cmp ax, cx
jne 0x413fed
mov eax, dword [esp + 0x1c4]
test eax, eax
je 0x414017
cmp dword [esp + 0x1c8], 0
je 0x414017
add eax, esi
mov dword [esp + 0x98], eax
jmp 0x41401e
mov ecx, 0x20b
cmp ax, cx
jne 0x414017
mov eax, dword [esp + 0x1d4]
test eax, eax
je 0x414017
cmp dword [esp + 0x1d8], 0
je 0x414017
add eax, esi
mov dword [esp + 0x98], eax
jmp 0x41401e
mov eax, dword [esp + 0x98]
test eax, eax
je 0x414045
push 0
push 0x14
lea ecx, [esp + 0x6ec]
mov dword [esp + 0x94], 0x14
push ecx
push eax
push edi
call ebp
test eax, eax
je 0x41411d
test ebx, ebx
je 0x414105
push dword [esp + 0x914]
push dword [esp + 0x24]
push esi
push edi
call fcn.00413060
add esp, 0x10
test eax, eax
je 0x41411d
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x4140e5
mov eax, dword [esp + 0x6f4]
movups xmm0, xmmword [esp + 0x6e4]
and eax, 0xfffffffe
mov dword [esp + 0x708], eax
lea eax, [esp + 0x14]
push eax
push 4
push 0x14
push ecx
push edi
movups xmmword [esp + 0x70c], xmm0
call fcn.00414140
test eax, eax
je 0x41411d
push 0
push 0x14
lea eax, [esp + 0x700]
push eax
push dword [esp + 0xa4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x41411d
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push 0x14
push dword [esp + 0xa4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x41411d
push 0x678
lea eax, [esp + 0x84]
push eax
push 0x43725c
push edi
call fcn.004136a0
neg eax
sbb eax, eax
neg eax
jmp 0x41411f
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41411d
push 0xc1
call esi
push 0x10dd
call esi
xor eax, eax
mov ecx, dword [esp + 0x904]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004154ca
add esp, 0x8f8
ret 0xc