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

Disassembly:
push 0xffffffffffffffff
push 0x4626d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x480810]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
push str.mag16713_5BMTY4OTI351457ddddab6608c86c4bc87fbd42b3f_5D
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 1
call fcn.0040a820
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x14]
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.0040a5f0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x28]
add esp, 4
push eax
call fcn.00422b50
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.0040a7a0
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021f3
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 0x40225b
mov byte [esp + 0x2c], 1
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40221d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402241
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x40252a
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00408c30
add esp, 0xc
push 2
push 0x46d93c
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 4
call fcn.00408f10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4022b7
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x4022b7
push eax
push ecx
call fcn.00449f00
add esp, 8
test eax, eax
je 0x4022b3
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov edi, eax
cmp edi, ebx
jne 0x4022e5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 2
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4022d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x14]
jmp 0x402202
test edi, edi
mov eax, dword [ecx - 0xc]
jl 0x40230e
cmp edi, eax
jg 0x40230e
add ecx, edi
push 0x46d940
push ecx
call fcn.00449f00
add esp, 8
test eax, eax
je 0x40230e
sub eax, dword [esp + 0x14]
mov esi, eax
cmp esi, ebx
jne 0x402328
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4022cb
call fcn.0042f9e8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402342
push 0x80004005
call fcn.0040a150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov bl, 5
mov byte [esp + 0x2c], bl
mov ebp, dword [esp + 0x38]
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 + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.00408a00
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 6
call fcn.0040a7a0
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 0
je 0x40248d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0040a7a0
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 4
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4023eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40240f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402433
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402457
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x402474
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 4
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402519
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x402536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret