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

Disassembly:
push 0xffffffffffffffff
push 0x447ef0
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 0x408a50
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x408c54
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x408c54
test esi, esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
jl 0x408a94
cmp esi, ecx
jge 0x408a94
add eax, esi
push 0x2e
push eax
call fcn.0042f4d1
add esp, 8
test eax, eax
je 0x408a94
sub eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x2c], eax
jge 0x408aa4
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 0x408ad2
cmp edi, ecx
jge 0x408ad2
add eax, edi
push 0x2e
push eax
call fcn.0042f4d1
add esp, 8
test eax, eax
je 0x408ad2
sub eax, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x28], ebx
jge 0x408ae4
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 0x408b5a
mov edx, dword [esi + 0xc]
test edx, edx
lea ebp, [esi + 0xc]
jl 0x408b4c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x408b4c
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 0x408b3f
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 0x408b5a
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 0x408b7d
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 0x408bec
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x408bde
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x408bde
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 0x408bd5
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x408bec
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 0x408c0f
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 0x408c36
mov dword [esp + 0x30], 1
jmp 0x408c40
jae 0x408c40
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 0x408a50
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 0x408c77
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 0x408c9a
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 0x408cb9
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 0x408cdf
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