Function at 0x4087c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4411f7
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x452650]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x452650]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
mov eax, dword [esp + 0x17c]
mov esi, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x16c], 1
xor ebx, ebx
lea edx, [esp + 0x34]
lea ecx, [esi + 0xc]
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x24], ecx
call fcn.004180a0
test eax, eax
je 0x408bdb
mov ebp, dword [esp + 0x174]
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push ebp
mov dword [esp + 0x34], ebp
call fcn.00403350
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.004086a0
cmp eax, ebx
je 0x408bb8
call fcn.00416f1e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408892
push 0x80004005
call fcn.00402e80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x16c], 2
call fcn.00416f1e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4088c4
push 0x80004005
call fcn.00402e80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x16c], 3
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x20]
mov edx, dword [ebp]
mov edx, dword [edx + 0x58]
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call edx
cmp eax, ebx
je 0x408b14
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jge 0x408909
or eax, 0xffffffff
jmp 0x408924
push 0x4489f4
push eax
call fcn.0042b987
add esp, 8
cmp eax, ebx
jne 0x408920
or eax, 0xffffffff
jmp 0x408924
sub eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402aa0
mov byte [esp + 0x16c], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x408995
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x408983
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x408983
push eax
call fcn.00403350
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x408976
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebp + 0x10]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x18], edi
jmp 0x408995
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00403440
mov edi, dword [esp + 0x18]
mov byte [esp + 0x16c], 3
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 0x4089bd
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], ebx
jl 0x4089e2
push 0x4489ec
push eax
call fcn.0042b987
add esp, 8
cmp eax, ebx
je 0x4089e2
sub eax, dword [esp + 0x14]
jns 0x4088e4
mov eax, dword [edi - 0xc]
cmp eax, ebx
je 0x4088e4
mov ebp, dword [esp + 0x178]
cmp ebp, ebx
je 0x4088e0
cmp eax, ebx
jl 0x4088e0
push ebp
push edi
call fcn.0042b987
add esp, 8
cmp eax, ebx
je 0x4088e0
sub eax, edi
js 0x4088e0
mov eax, dword [esp + 0x14]
mov esi, dword [eax - 0xc]
cmp esi, ebx
jge 0x408a2e
or eax, 0xffffffff
jmp 0x408a49
push 0x4489f4
push eax
call fcn.0042b987
add esp, 8
cmp eax, ebx
jne 0x408a45
or eax, 0xffffffff
jmp 0x408a49
sub eax, dword [esp + 0x14]
sub esi, eax
sub esi, 1
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00408ea0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 5
call fcn.004033c0
mov byte [esp + 0x16c], 3
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 0x408a97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00403350
add esp, 4
lea ecx, [esp + 0x20]
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00408c60
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 6
call fcn.004033c0
mov byte [esp + 0x16c], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408af7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
push edi
call fcn.0042ad61
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ecx], eax
mov dword [esp + 0x24], 1
jmp 0x408b1b
mov ebp, dword [esp + 0x178]
lea eax, [edi - 0x10]
mov byte [esp + 0x16c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408b3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x16c], 1
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 0x408b67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x16c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x16c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408bb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
jmp 0x408c35
mov byte [esp + 0x16c], bl
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c05
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
jmp 0x408c05
mov byte [esp + 0x16c], bl
mov eax, dword [esp + 0x174]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x16c], 0xffffffff
mov eax, dword [esp + 0x178]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0042aa3b
add esp, 0x15c
ret 0xc