Function at 0x417ed0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46eb30
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x490d1c]
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.00401920
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0xc], esi
cmp dword [esi - 0xc], 0
mov byte [esp + 0x20], 2
jne 0x417f55
add esi, 0xfffffff0
push esi
call fcn.00401920
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 0x4180e7
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
push 0x475714
push edx
call fcn.00404260
push 0x475718
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x38], 3
call fcn.00402c10
mov eax, dword [eax]
add esp, 0x18
test eax, eax
jne 0x417f8c
or edi, 0xffffffff
jmp 0x417fb0
cmp dword [esi - 0xc], 0
jge 0x417f97
or edi, 0xffffffff
jmp 0x417fb0
push eax
push esi
call fcn.00455a19
add esp, 8
test eax, eax
jne 0x417faa
or edi, 0xffffffff
jmp 0x417fb0
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 0x417fd0
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 0x417ff5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jl 0x4180c0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
mov ecx, dword [esp + 0x30]
lea eax, [eax + edi + 2]
test ecx, ecx
je 0x4180c0
mov edx, dword [esi - 0xc]
test eax, eax
jl 0x4180c0
cmp eax, edx
jg 0x4180c0
push ecx
lea edx, [esi + eax*2]
push edx
call fcn.00455a19
add esp, 8
test eax, eax
je 0x4180c0
sub eax, esi
sar eax, 1
test eax, eax
jl 0x4180c0
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx - 0xc]
add ecx, eax
push ecx
push 0x474df8
lea ecx, [esp + 0x14]
call fcn.00403c20
mov esi, eax
inc esi
push esi
push 0xa
lea ecx, [esp + 0x14]
call fcn.004176a0
lea ecx, [esp + 0xc]
test eax, eax
jle 0x4180b3
sub eax, esi
dec eax
push eax
push esi
mov esi, dword [esp + 0x30]
push esi
call fcn.00417890
lea ecx, [esp + 0xc]
call fcn.00401990
lea ecx, [esp + 0x2c]
call fcn.00401990
lea ecx, [esp + 0x30]
call fcn.00401990
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.00417be0
jmp 0x418082
add esi, 0xfffffff0
push esi
call fcn.00401920
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 0x4180f3
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 0x418118
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 0x41813c
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