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

Disassembly:
push 0xffffffffffffffff
push 0x46e898
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x3c], 0
call fcn.00402dd0
add esp, 4
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x14]
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.00410330
lea ecx, [esp + 0x38]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004293c0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 2
call fcn.004104e0
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4024f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x40254c
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40251b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40295b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40295b
mov ebp, dword [esp + 0x40]
lea esi, [ebp - 0x10]
push esi
mov dword [esp + 0x30], esi
call fcn.00410330
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
push 2
push 0x47aa04
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 3
call fcn.0040ecb0
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4025a9
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x4025a9
push ebx
push eax
call fcn.00455250
add esp, 8
test eax, eax
je 0x4025a9
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov edi, eax
cmp edi, 0xffffffff
jne 0x402619
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x38], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40295b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x40295b
test edi, edi
mov eax, dword [ecx - 0xc]
jl 0x4025a9
cmp edi, eax
jg 0x4025a9
lea eax, [edi + ecx]
push 0x47aa08
push eax
call fcn.00455250
add esp, 8
test eax, eax
je 0x4025a9
sub eax, dword [esp + 0x14]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402651
mov esi, dword [esp + 0x2c]
jmp 0x4025a9
call fcn.0043adc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40266b
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov bl, 4
mov byte [esp + 0x38], bl
mov eax, dword [ebp - 0xc]
sub esi, eax
sub esi, edi
sub esi, 2
push esi
lea ecx, [eax + edi + 2]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
call fcn.0040e880
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 5
call fcn.004104e0
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
jl 0x4026f7
push 0x47aa0c
push esi
call fcn.00455250
add esp, 8
test eax, eax
je 0x4026f7
sub eax, esi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x402773
add esi, 0xfffffff0
mov byte [esp + 0x38], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402718
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x38], 1
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 0x40273d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402762
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x2c]
jmp 0x40252a
mov eax, dword [esi - 0xc]
lea ebx, [ebp + 1]
test ebx, ebx
jl 0x402937
cmp ebx, eax
jg 0x402937
lea ecx, [ebx + esi]
push 0x47aa0c
push ecx
call fcn.00455250
add esp, 8
test eax, eax
je 0x402937
sub eax, esi
mov edi, eax
cmp edi, 0xffffffff
je 0x402937
lea ecx, [esp + 0x2c]
call fcn.00410780
lea ecx, [esp + 0x28]
call fcn.00410780
lea ecx, [esp + 0x24]
call fcn.00410780
push ebp
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 8
call fcn.0040e9b0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 9
call fcn.004104e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 8
call fcn.00410760
mov eax, edi
sub eax, ebp
sub eax, 1
push eax
push ebx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040e880
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.004104e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 8
call fcn.00410760
mov eax, dword [esi - 0xc]
sub eax, edi
sub eax, 1
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
call fcn.0040e930
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0xb
call fcn.004104e0
lea ecx, [esp + 0x20]
call fcn.00410760
lea ecx, [esp + 0x20]
call fcn.00410780
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xc
call fcn.0040ed30
push eax
call fcn.004020f0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0040ec50
add esp, 0x10
test al, al
je 0x402913
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x28]
push eax
call fcn.004104e0
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004104e0
lea ecx, [esp + 0x20]
call fcn.00410760
lea ecx, [esp + 0x24]
call fcn.00410760
lea ecx, [esp + 0x28]
call fcn.00410760
lea ecx, [esp + 0x2c]
call fcn.00410760
lea ecx, [esp + 0x18]
call fcn.00410760
lea ecx, [esp + 0x1c]
call fcn.00410760
lea ecx, [esp + 0x14]
call fcn.00410760
lea ecx, [esp + 0x40]
call fcn.00410760
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x20]
call fcn.00410760
lea ecx, [esp + 0x24]
call fcn.00410760
lea ecx, [esp + 0x28]
call fcn.00410760
lea ecx, [esp + 0x2c]
call fcn.00410760
lea ecx, [esp + 0x18]
call fcn.00410760
lea ecx, [esp + 0x1c]
call fcn.00410760
lea ecx, [esp + 0x14]
call fcn.00410760
lea ecx, [esp + 0x40]
call fcn.00410760
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret