Function at 0x416c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47cb40
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [ecx + 0xa4]
sub eax, 0x10
push eax
mov dword [esp + 0x24], 1
call fcn.00401590
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0xc], esi
cmp dword [esi - 0xc], 0
mov byte [esp + 0x20], 2
jne 0x416d05
add esi, 0xfffffff0
push esi
call fcn.00401590
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x20], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x416e97
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
push 0x4846fc
push edx
call fcn.004046c0
push 0x484700
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x38], 3
call fcn.00402800
mov eax, dword [eax]
add esp, 0x18
test eax, eax
jne 0x416d3c
or edi, 0xffffffff
jmp 0x416d60
cmp dword [esi - 0xc], 0
jge 0x416d47
or edi, 0xffffffff
jmp 0x416d60
push eax
push esi
call fcn.0045bf66
add esp, 8
test eax, eax
jne 0x416d5a
or edi, 0xffffffff
jmp 0x416d60
sub eax, esi
sar eax, 1
mov edi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x20], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416da5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jl 0x416e70
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
mov ecx, dword [esp + 0x30]
lea eax, [eax + edi + 2]
test ecx, ecx
je 0x416e70
mov edx, dword [esi - 0xc]
test eax, eax
jl 0x416e70
cmp eax, edx
jg 0x416e70
push ecx
lea edx, [esi + eax*2]
push edx
call fcn.0045bf66
add esp, 8
test eax, eax
je 0x416e70
sub eax, esi
sar eax, 1
test eax, eax
jl 0x416e70
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx - 0xc]
add ecx, eax
push ecx
push 0x483d1c
lea ecx, [esp + 0x14]
call fcn.004038f0
mov esi, eax
inc esi
push esi
push 0xa
lea ecx, [esp + 0x14]
call fcn.00416520
lea ecx, [esp + 0xc]
test eax, eax
jle 0x416e63
sub eax, esi
dec eax
push eax
push esi
mov esi, dword [esp + 0x30]
push esi
call fcn.00403f80
lea ecx, [esp + 0xc]
call fcn.00401430
lea ecx, [esp + 0x2c]
call fcn.00401430
lea ecx, [esp + 0x30]
call fcn.00401430
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 0xc
push esi
mov esi, dword [esp + 0x2c]
push esi
call fcn.00404690
jmp 0x416e32
add esi, 0xfffffff0
push esi
call fcn.00401590
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x20], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x416ea3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x20], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416ec8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x20], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416eec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 0xc