Function at 0x40c9d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5778d1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], 2
mov eax, dword [0x5dcd6c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5dcd6c
call edx
mov ecx, dword [esp + 0x54]
add eax, 0x10
mov dword [ecx], eax
mov edx, dword [0x5dcd6c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5dcd6c
mov dword [esp + 0x24], 1
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x4c], 3
mov edx, dword [0x5dcd6c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5dcd6c
call eax
mov edx, dword [0x5dcd6c]
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5dcd6c
call eax
mov edx, dword [0x5dcd6c]
add eax, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5dcd6c
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0xa
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], ebx
push 0x5c4190
push str.X_Cf_Platform
lea esi, [esp + 0x1c]
mov byte [esp + 0x54], 5
call fcn.0040bf30
call fcn.0040bfe0
mov ecx, esi
lea edx, [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x58]
push edx
call fcn.0040e5d0
lea eax, [esp + 0x1c]
mov byte [esp + 0x4c], 6
mov ecx, dword [esp + 0x5c]
push eax
call fcn.0040e5d0
mov byte [esp + 0x4c], 7
mov esi, dword [esp + 0x1c]
mov eax, esi
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40caf0
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
sub eax, edi
push edx
mov ecx, eax
mov edx, esi
call fcn.00402b50
cmp eax, ebx
jne 0x40cb4f
mov edx, dword [esp + 0x30]
cmp edx, ebx
jne 0x40cb1e
xor eax, eax
jmp 0x40cb2e
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40cb23
sub eax, esi
mov edi, eax
push edx
lea eax, [esp + 0x1c]
call fcn.004027a0
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x54]
mov ebx, ebp
mov eax, edi
call fcn.00408c90
xor ebx, ebx
jmp 0x40cb53
mov edi, dword [esp + 0x54]
mov byte [esp + 0x4c], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40cbb2
push eax
call fcn.0044f230
add esp, 4
mov dword [esp + 0x14], ebx
lea esi, [esp + 0x28]
call fcn.00402af0
lea eax, [ebp - 0x10]
mov byte [esp + 0x4c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cbdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], bl
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc