Function at 0x540370
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f47ef
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x7ce4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x50
mov dword [esi], 0xc0135c29
mov dword [esi + 4], 0xc110147b
mov dword [esi + 8], 0xc140147b
mov dword [esi + 0xc], 0xc100147b
mov dword [esi + 0x10], 0x40a98bac
mov dword [esi + 0x14], 0x40000000
mov dword [esi + 0x18], 0x420c0000
mov dword [esi + 0x1c], 0x40000000
mov dword [esi + 0x20], 0x40000000
mov dword [esi + 0x24], 0x40000000
mov dword [esi + 0x28], 0x3f800000
mov dword [esi + 0x2c], 0x41200000
mov dword [esi + 0x30], 3
call fcn.005be217
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x540451
lea eax, [edi + 0x18]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0x1388
mov dword [edi + 0xc], 5
mov word [edi + 0x10], 0
mov dword [ebp - 0x18], eax
mov dword [eax + 0x24], 0
push 0xff0
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 3
call fcn.0058d8a0
jmp 0x540453
xor edi, edi
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], edi
mov dword [ebp - 0x18], ecx
lea eax, [ecx + 0x18]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x200
mov dword [ecx + 0xc], 2
mov word [ecx + 0x10], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0x24], 0
push 0xff0
add ecx, 0x40
mov dword [ebp - 4], 6
call fcn.0058d8a0
push 0x554270
push fcn.00554210
push 0x19
push 0x9c
lea eax, [esi + 0x9c]
mov dword [ebp - 4], 7
push eax
call fcn.005bea40
mov dword [esi + 0xfdc], 0
xorps xmm0, xmm0
mov dword [esi + 0xfe0], 0
mov dword [esi + 0xfe8], 0x2ee
mov dword [esi + 0xfec], 0
mov dword [esi + 0xff0], 0x2ee
mov dword [esi + 0xff4], 0
mov dword [esi + 0xff8], 0
movups xmmword [esi + 0xffc], xmm0
mov eax, dword [esi + 0xfe8]
mov byte [esi + 0x100c], 0
test eax, eax
je 0x540542
imul eax, eax, 0x9c
push eax
call fcn.005cff37
add esp, 4
mov dword [esi + 0xfec], eax
test eax, eax
jne 0x540542
mov dword [esi + 0xff0], eax
push 0x7e1bbc
push 0xf
lea ecx, [esi + 0x1010]
mov byte [ebp - 4], 9
call fcn.00533e90
push 0x7e1bbc
push 0x19
lea ecx, [esi + 0x1028]
mov byte [ebp - 4], 0xa
call fcn.00533e90
push 0xf
push 2
lea ecx, [esi + 0x1040]
mov byte [ebp - 4], 0xb
call fcn.00533d90
push 0x19
push 2
lea ecx, [esi + 0x1058]
mov byte [ebp - 4], 0xc
call fcn.00533d90
push 0x554270
push fcn.00554210
push 0x19
push 0x9c
lea eax, [esi + 0x125c]
mov byte [ebp - 4], 0xd
push eax
mov byte [esi + 0x1258], 0
call fcn.005bea40
push 0x28
mov byte [ebp - 4], 0xe
call fcn.005be217
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0xf
test edi, edi
je 0x54064e
lea ecx, [edi + 8]
mov dword [edi], 8
mov dword [edi + 4], 0
call fcn.005abe70
cmp dword [edi + 8], 0
lea ecx, [edi + 8]
mov byte [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 0x10
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov byte [edi + 0x10], 0
je 0x540650
call fcn.005abdb0
jmp 0x540650
xor edi, edi
push 0x1c
mov byte [ebp - 4], 0xe
mov dword [esi + 0x88], edi
call fcn.005be217
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0x11
test edi, edi
je 0x5406c4
lea ecx, [edi + 0x10]
mov byte [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 8
mov dword [edi + 0xc], 0
call fcn.005abe70
cmp dword [edi + 0x10], 0
lea ecx, [edi + 0x10]
mov dword [edi + 0x18], 0
mov byte [ebp - 4], 0x12
mov dword [edi + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov byte [edi], 0
je 0x5406c6
call fcn.005abdb0
jmp 0x5406c6
xor edi, edi
push 0x1c
mov byte [ebp - 4], 0xe
mov dword [esi + 0x8c], edi
call fcn.005be217
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x54073a
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], 0
mov dword [eax + 4], 0
mov byte [eax], 0
mov dword [eax + 8], 0
jmp 0x54073c
xor eax, eax
push 0x10
mov dword [esi + 0x90], eax
call fcn.005be217
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x540782
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [eax], 0
mov dword [eax + 0xc], 0
jmp 0x540784
xor eax, eax
push 0x3de0
mov dword [esi + 0x94], eax
call fcn.005be217
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x5407a7
mov ecx, eax
call fcn.005407d0
jmp 0x5407a9
xor eax, eax
mov ecx, esi
mov dword [esi + 0x98], eax
call fcn.00540f50
mov ecx, esi
call fcn.00540fd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret