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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
call fcn.0040d9e0
test eax, eax
jne 0x40d9dc
mov ecx, 0x6a4abc5b
call fcn.0040dac4
test eax, eax
je 0x40d9dc
mov dword [esp + 4], eax
mov ecx, 0x3cfa685d
call fcn.0040dac4
test eax, eax
je 0x40d9dc
mov dword [esp + 8], eax
mov ecx, eax
mov edx, 0xc9616ee
call fcn.0040db2c
test eax, eax
je 0x40d9dc
mov dword [esp + 0xc], eax
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0x18]
mov dword [esp + 0x10], edx
push 0x5ec
push 8
push edx
call eax
test eax, eax
je 0x40d9dc
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 + 0x1bc]
mov dword [eax + 4], ecx
lea ecx, [ecx + 0x1bc]
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.0040d827
jmp 0x40d831
push ebx
lea ebx, [ebx + 0x538]
lea ebp, [eax + 0x70]
mov ecx, dword [eax]
mov edx, dword [ebx]
test edx, edx
je 0x40d853
call fcn.0040db2c
mov dword [ebp], eax
lea ebx, [ebx + 4]
lea ebp, [ebp + 8]
jmp 0x40d83d
pop ebx
mov edx, dword [esp + 8]
lea ecx, [ebx + 0x510]
mov dword [edx + 8], 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 0x40d886
pop ebp
pop ebx
jmp 0x40d8da
lea ecx, [ebx + 0x4e4]
mov dword [edx + 0x1a0], ecx
lea ecx, [ebx + 0x4f0]
mov dword [edx + 0x1a4], ecx
lea ecx, [ebx + 0x370]
mov dword [edx + 0x1a8], ecx
lea ecx, [ebx + 0x3d8]
mov dword [edx + 0x1b0], ecx
lea ecx, [ebx + 0x5ac]
mov dword [edx + 0x1b4], ecx
lea ecx, [ebx + 0xc08]
mov dword [edx + 0x1b8], ecx
pop ebp
pop ebx
mov eax, dword [edx + 0xf0]
test eax, eax
jne 0x40d8f8
mov eax, dword [edx + 0x70]
test eax, eax
je 0x40d9dc
mov ecx, dword [esp]
mov edx, dword [edx + 0x10]
push ecx
push 0
push edx
call eax
xor eax, eax
jmp 0x40d9dc
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 0x40d8da
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, str.:_:x:
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 0x40d99c
shr eax, 8
jmp 0x40d977
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 0x40d9cd
mov edx, dword [esp]
mov edx, dword [edx]
jmp 0x40d8da
mov eax, dword [esp]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40e45a
mov esp, ebp
pop ebp
ret
mov word [ebp - 4], fs
mov ecx, 0x2b
mov fs, cx
and esp, 0xfffffff0
push 0x33
call 0x40e46f
add dword [esp], 5
retf