Function at 0x401064
Capabilities:
64-bit execution via heavens gate
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
call fcn.0040131f
test eax, eax
jne 0x40131a
mov ecx, 0x6a4abc5b
call fcn.00401403
test eax, eax
je 0x40131a
mov dword [esp + 4], eax
mov ecx, 0x3cfa685d
call fcn.00401403
test eax, eax
je 0x40131a
mov dword [esp + 8], eax
mov ecx, eax
mov edx, 0xc9616ee
call fcn.0040146b
test eax, eax
je 0x40131a
mov dword [esp + 0xc], eax
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0x18]
mov dword [esp + 0x10], edx
push 0x6fc
push 8
push edx
call eax
test eax, eax
je 0x40131a
mov ecx, eax
lea eax, [eax + 0xf]
and eax, 0xfffffff0
mov dword [eax - 4], ecx
mov dword [esp], eax
lea ecx, [eax + 0x54]
mov dword [eax], ecx
lea ecx, [ecx + 0x244]
mov dword [eax + 4], ecx
lea ecx, [ecx + 0x244]
mov dword [eax + 0x24], ecx
lea eax, [eax + 0x54]
mov ecx, dword fs:[0x18]
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x20], edx
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov edx, dword [esp + 0xc]
mov dword [eax + 0x68], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 0x10], edx
push ebx
push ebp
call fcn.0040113b
jmp 0x401145
push ebx
lea ebx, [ebx + 0x698]
lea ebp, [eax + 0x70]
mov ecx, dword [eax]
mov edx, dword [ebx]
test edx, edx
je 0x401167
call fcn.0040146b
mov dword [ebp], eax
lea ebx, [ebx + 4]
lea ebp, [ebp + 8]
jmp 0x401151
pop ebx
mov edx, dword [esp + 8]
lea ecx, [ebx + 0x65c]
mov dword [edx + 8], ecx
lea ecx, [ebx + 0x70c]
mov dword [edx + 0xc], ecx
lea ecx, [ebx + 0x80c]
mov dword [edx + 0x10], ecx
lea ecx, [edx + 0x28]
mov edx, dword [edx]
mov eax, dword [edx + 0x108]
lea edx, [esp + 0xc]
push edx
push 0x2c
push ecx
push 0
call eax
mov edx, dword [esp + 8]
mov edx, dword [edx]
test eax, eax
jns 0x4011ac
pop ebp
pop ebx
jmp 0x401218
lea ecx, [ebx + 0x630]
mov dword [edx + 0x1a0], ecx
lea ecx, [ebx + 0x63c]
mov dword [edx + 0x1a4], ecx
lea ecx, [ebx + 0x39c]
mov dword [edx + 0x1a8], ecx
lea ecx, [ebx + 0x404]
mov dword [edx + 0x1b0], ecx
lea ecx, [ebx + 0x90c]
mov dword [edx + 0x1b4], ecx
lea ecx, [ebx + 0xf68]
mov dword [edx + 0x1b8], ecx
lea ecx, [ebx + 0x510]
mov dword [edx + 0x1bc], ecx
lea ecx, [ebx + 0x5e4]
mov dword [edx + 0x1c0], ecx
pop ebp
pop ebx
mov eax, dword [edx + 0xf0]
test eax, eax
jne 0x401236
mov eax, dword [edx + 0x70]
test eax, eax
je 0x40131a
mov ecx, dword [esp]
mov edx, dword [edx + 0x10]
push ecx
push 0
push edx
call eax
xor eax, eax
jmp 0x40131a
xor ecx, ecx
dec ecx
lea edx, [esp + 4]
push 0
push 4
push edx
push 0x1a
push ecx
call eax
mov edx, dword [esp]
mov edx, dword [edx]
test eax, eax
js 0x401218
add esp, 0xffffffce
mov eax, esp
mov ecx, 0x50004e
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x53005a
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x45005f
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x530041
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x5f004d
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x4f004d
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x530044
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x310030
mov dword [eax], ecx
lea eax, [eax + 4]
mov dword [esp + 0x36], ebx
mov ebx, eax
mov eax, dword [esp + 0x32]
xor ecx, ecx
xor edx, edx
mov cl, 4
mov dl, al
shr dl, 4
and dl, 0xf
add dl, 0x30
mov dword [ebx], edx
lea ebx, [ebx + 2]
mov dl, al
and dl, 0xf
add dl, 0x30
mov dword [ebx], edx
lea ebx, [ebx + 2]
dec ecx
je 0x4012da
shr eax, 8
jmp 0x4012b5
mov ebx, dword [esp + 0x36]
mov eax, dword [esp + 0x32]
mov eax, dword [eax]
mov eax, dword [eax + 0x140]
mov ecx, esp
lea edx, [esp + 0x20]
push 8
push edx
push 0x10
push ecx
push 0
call eax
add esp, 0x32
test eax, eax
jns 0x40130b
mov edx, dword [esp]
mov edx, dword [edx]
jmp 0x401218
mov eax, dword [esp]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4020cf
mov esp, ebp
pop ebp
ret
mov word [ebp - 4], fs
mov ecx, 0x2b
mov fs, cx
and esp, 0xfffffff0
push 0x33
call 0x4020e4
add dword [esp], 5
retf