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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b98c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea edx, [esi + 0x58]
mov dword [ebp - 0x10], edi
lea eax, [esi + 0x10]
push 0
mov dword [edi + 4], eax
lea eax, [esi + 0xa8]
mov dword [edi], esi
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0x4c]
push 0
push 0x10005b
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [edi + 0x18], eax
mov byte [edi + 0x1c], 1
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov word [edi + 0x38], 1
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov word [edi + 0x50], 1
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov word [edi + 0x68], 1
mov dword [edi + 0x6c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
push 9
xor eax, eax
mov byte [edi + 0x70], 0
push 0x48dbd0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00402710
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push 0xb
push 0x48dbe4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00402850
mov byte [ebp - 4], 5
call fcn.004011f0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov esi, eax
cmovae ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00406230
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40cc89
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cc7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cdd6
push edx
push ecx
call fcn.0041ee0c
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 8
jb 0x40ccd9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cccf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cdd6
push edx
push ecx
call fcn.0041ee0c
add esp, 8
push 9
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x48dbf0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00402710
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
push 0xd
push 0x48dc04
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00402850
mov byte [ebp - 4], 7
call fcn.004011f0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov esi, eax
cmovae ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00406230
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40cd7a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cddb
push edx
push ecx
call fcn.0041ee0c
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 8
jb 0x40cdc2
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cdb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cddb
push edx
push ecx
call fcn.0041ee0c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.00424b90
call fcn.00424b90
int3