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

Disassembly:
push 0xffffffffffffffff
push 0x4483b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
xor esi, esi
mov dword [esp + 0x44], esi
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
call fcn.00402470
mov ecx, dword [esp + 0x50]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 2
call fcn.00402470
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
mov edx, dword [ecx - 0xc]
push 0x2e
push 0x2c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 3
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
call fcn.004036d0
push 0x2e
push 0x2c
lea ecx, [esp + 0x18]
call fcn.004036d0
xor ebx, ebx
mov dword [esp + 0x30], ebx
xor edi, edi
jmp 0x40fbc0
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x40fdc4
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x40fdc4
test esi, esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
jl 0x40fc04
cmp esi, ecx
jge 0x40fc04
add eax, esi
push 0x2e
push eax
call fcn.0042f4d1
add esp, 8
test eax, eax
je 0x40fc04
sub eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x2c], eax
jge 0x40fc14
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], 0xffffffff
test edi, edi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
jl 0x40fc42
cmp edi, ecx
jge 0x40fc42
add eax, edi
push 0x2e
push eax
call fcn.0042f4d1
add esp, 8
test eax, eax
je 0x40fc42
sub eax, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x28], ebx
jge 0x40fc54
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], 0xffffffff
mov ebx, ecx
mov edx, dword [esp + 0x2c]
sub edx, esi
push edx
push esi
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
call fcn.00401730
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x44], 4
je 0x40fcca
mov edx, dword [esi + 0xc]
test edx, edx
lea ebp, [esi + 0xc]
jl 0x40fcbc
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40fcbc
push eax
call fcn.004014e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x40fcaf
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x28]
jmp 0x40fcca
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401a70
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x44], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fced
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebx
sub eax, edi
push eax
push edi
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401730
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x44], 5
je 0x40fd5c
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x40fd4e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40fd4e
push eax
call fcn.004014e0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40fd45
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x40fd5c
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00401a70
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x44], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
push eax
call fcn.0042f99e
mov ebp, dword [esp + 0x20]
push ebp
mov esi, eax
call fcn.0042f99e
add esp, 8
cmp esi, eax
jbe 0x40fda6
mov dword [esp + 0x30], 1
jmp 0x40fdb0
jae 0x40fdb0
mov dword [esp + 0x30], 0xffffffff
mov esi, dword [esp + 0x2c]
lea edi, [ebx + 1]
mov ebx, dword [esp + 0x30]
inc esi
test ebx, ebx
je 0x40fbc0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x44], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fde7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x44], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret