Function at 0x401360
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460dad
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4780c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
xorps xmm0, xmm0
mov dword [ebp - 0x34], edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
push 0
push 3
push 0
push 1
push closesocket
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, 0xffffffff
je 0x4013f1
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x401453
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmp ecx, 0xf
jbe 0x401688
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401444
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016a5
push ecx
push edx
call fcn.0043a836
add esp, 8
jmp 0x401688
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4014cf
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp - 0x14]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmp ecx, 0xf
jbe 0x401688
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401444
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016a5
jmp 0x401444
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40164c
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x40164c
mov edx, dword [ecx + eax + 0x98]
mov ecx, dword [ecx + eax + 0x9c]
mov dword [ebp - 0x44], edx
test edx, edx
je 0x40164c
test ecx, ecx
je 0x40164c
lea esi, [edx + eax]
mov edx, 0x200
mov dword [ebp - 0x40], esi
cmp word [esi + 4], dx
jne 0x40164c
cmp word [esi + 6], 2
jne 0x40164c
mov edx, dword [esi]
cmp edx, ecx
jae 0x40164c
mov esi, dword [ebp - 0x18]
sub ecx, edx
mov dword [ebp - 0x2c], ecx
cmp ecx, esi
ja 0x401558
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmova eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x40159c
mov eax, dword [ebp - 0x14]
mov edx, ecx
sub edx, esi
sub eax, esi
mov dword [ebp - 0x30], edx
cmp edx, eax
ja 0x40158d
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push edx
cmova eax, dword [ebp - 0x28]
add esi, eax
mov dword [ebp - 0x18], ecx
push 0
push esi
call fcn.0043bf20
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x40159c
push 0
push edx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
push edx
call fcn.00401ad0
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
push dword [ebp - 0x2c]
cmova ecx, dword [ebp - 0x28]
mov eax, dword [eax]
add eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x38]
push eax
push ecx
call fcn.0043c080
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x30], ecx
cmp esi, 0xf
cmova eax, dword [ebp - 0x28]
add eax, ecx
cmp esi, 0xf
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
add eax, ecx
cmp esi, 0xf
cmova edx, dword [ebp - 0x28]
cmp eax, edx
je 0x4015fc
cmp byte [eax - 1], 0
jne 0x4015fc
dec eax
cmp eax, edx
jne 0x4015f1
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
cmp esi, 0xf
mov esi, eax
cmova ecx, dword [ebp - 0x28]
sub edx, eax
sub esi, ecx
mov ecx, dword [ebp - 0x30]
mov eax, ecx
sub eax, esi
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x14], 0xf
mov dword [ebp - 0x2c], edx
lea edx, [ebp - 0x28]
cmova edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
add edx, esi
sub ecx, eax
add eax, edx
mov dword [ebp - 0x30], ecx
sub ecx, esi
inc ecx
push ecx
push eax
push edx
call fcn.0043c080
mov ecx, dword [ebp - 0x30]
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], ecx
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a7f3
mov esp, ebp
pop ebp
ret
call fcn.0043fb2f
int3