Function at 0x40c960
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x482c97
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49f8b8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x34], 1
lea edi, [esi + 0x3c]
mov dword [esp + 0x1c], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov byte [edi + 8], 1
mov dword [esi + 0x58], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x54], 1
mov dword [esi + 0x68], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x64], 1
lea ebp, [esi + 0x6c]
mov dword [ebp + 0xc], ebx
mov dword [ebp + 4], ebx
mov dword [ebp], ebx
mov byte [ebp + 8], 1
mov byte [esp + 0x1c], 4
mov edx, dword [0x4b5b24]
mov dword [esi], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov ecx, dword [edx + 0x2128]
add eax, 0xffffffff
cmp eax, 3
mov dword [esi + 0x20], ecx
ja case.default.0x40ca18
jmp dword [eax*4 + 0x40cbf4]
mov dword [esi + 4], 0x19
mov dword [esi + 0xc], 0xfffffce0
mov dword [esi + 8], ebx
mov eax, dword [edx + 0x2134]
mov ecx, dword [edx + 0x2138]
add eax, 1
push edx
call fcn.0041da70
mov dword [esi + 0x1c], eax
mov eax, 0x320
cdq
idiv dword [esi + 4]
jmp 0x40cad8
mov dword [esi + 4], 0xffffffe7
mov dword [esi + 0xc], 0x320
mov dword [esi + 8], ebx
mov eax, dword [edx + 0x2134]
mov ecx, dword [edx + 0x2138]
sub eax, 1
push edx
call fcn.0041da70
mov dword [esi + 0x1c], eax
mov eax, 0x320
cdq
idiv dword [esi + 4]
jmp 0x40cad8
mov dword [esi + 0x10], 0x19
mov dword [esi + 0x18], 0xfffffda8
mov dword [esi + 0x14], ebx
mov ecx, dword [edx + 0x2138]
add ecx, 1
jmp 0x40cac0
mov dword [esi + 0x10], 0xffffffe7
mov dword [esi + 0x18], 0x258
mov dword [esi + 0x14], ebx
mov ecx, dword [edx + 0x2138]
sub ecx, 1
mov eax, dword [edx + 0x2134]
push edx
call fcn.0041da70
mov dword [esi + 0x1c], eax
mov eax, 0x258
cdq
idiv dword [esi + 0x10]
add eax, 1
cdq
xor eax, edx
sub eax, edx
mov edx, dword [0x4b5b24]
mov dword [esi + 0x28], eax
mov edx, dword [edx + 0x2108]
push edx
call fcn.00441e10
mov eax, dword [0x4b5b24]
add esp, 4
cmp byte [eax + 0x210d], bl
push ebx
push ebx
jne 0x40cb13
mov ecx, dword [0x4b5b20]
add ecx, 0xc
push ecx
jmp 0x40cb1d
mov edx, dword [0x4b5b20]
add edx, 0x70
push edx
call fcn.00441a10
mov ecx, dword [0x4b5b24]
mov dword [ecx + 0x2108], eax
mov edx, dword [esi + 0x1c]
add esp, 0xc
push edx
mov eax, esi
call fcn.0040cc10
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x28], eax
xor ecx, ecx
mov eax, 0x32
mov edx, 4
mul edx
seto cl
mov dword [edi + 0xc], ebx
mov dword [edi], 0x32
neg ecx
or eax, ecx
push eax
call fcn.0043a740
add esp, 4
mov dword [edi + 4], eax
mov eax, dword [0x4b5b24]
push edi
push eax
mov eax, dword [esp + 0x30]
mov byte [edi + 8], 1
call fcn.0041f970
mov ecx, dword [esi + 0x1c]
push ecx
mov eax, esi
call fcn.0040cee0
mov edi, dword [esi + 0x1c]
xor ecx, ecx
mov eax, 0xa
mov edx, 4
mul edx
seto cl
mov dword [ebp + 0xc], ebx
mov dword [ebp], 0xa
neg ecx
or eax, ecx
push eax
call fcn.0043a740
mov dword [ebp + 4], eax
mov eax, dword [0x4b5b24]
add esp, 4
push eax
mov ebx, ebp
mov eax, edi
mov byte [ebp + 8], 1
call fcn.0041ea00
mov ecx, dword [0x4b572c]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8