Function at 0x4104f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c1bc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
lea ecx, [esp + 0xc]
call fcn.0040ae80
mov ecx, 0x4ffdbb
mov dword [esp + 0x30], 0
call fcn.0040d550
mov eax, dword [0x4ffb58]
mov eax, dword [eax + 0x2c]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x410549
push 0x4d6aec
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x4c824c
call fcn.004a0e32
mov ecx, dword [eax + 0x14]
test ecx, ecx
push esi
jne 0x410555
xor esi, esi
jmp 0x410558
mov esi, dword [ecx + 0x10]
mov eax, dword [eax + 0x10]
cmp eax, esi
jb 0x410576
push 0x4d6adc
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x4c8250
call fcn.004a0e32
test ecx, ecx
je 0x41057f
mov ecx, dword [ecx + 0xc]
jmp 0x410581
xor ecx, ecx
imul eax, ecx
add eax, edx
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax + 0x50]
mov ecx, 0x4ffdbb
mov esi, eax
call fcn.0040d550
mov ecx, dword [0x4ffb58]
mov eax, dword [ecx + 0x2c]
mov ecx, dword [eax + 0x24]
test ecx, ecx
jne 0x4105c5
push 0x4d6aec
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x4c824c
call fcn.004a0e32
mov edx, dword [eax + 0x2c]
test edx, edx
push edi
jne 0x4105d1
xor edi, edi
jmp 0x4105d4
mov edi, dword [edx + 0x10]
mov eax, dword [eax + 0x28]
cmp eax, edi
pop edi
jb 0x4105f3
push 0x4d6adc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x4c8250
call fcn.004a0e32
test edx, edx
je 0x4105fc
mov edx, dword [edx + 0xc]
jmp 0x4105fe
xor edx, edx
imul eax, edx
mov edx, dword [esi]
add eax, ecx
push eax
mov ecx, esi
call dword [edx + 0x50]
mov ecx, 0x4ffdbb
call fcn.0040d550
mov eax, dword [0x4ffb58]
mov eax, dword [eax + 0x2c]
mov ecx, dword [eax]
test ecx, ecx
jne 0x41063a
push 0x4d6aec
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x4c824c
call fcn.004a0e32
mov edx, dword [eax + 8]
test edx, edx
jne 0x410645
xor esi, esi
jmp 0x410648
mov esi, dword [edx + 0x10]
mov eax, dword [eax + 4]
cmp eax, esi
jb 0x410666
push 0x4d6adc
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x4c8250
call fcn.004a0e32
test edx, edx
je 0x41066f
mov edx, dword [edx + 0xc]
jmp 0x410671
xor edx, edx
imul eax, edx
add eax, ecx
mov ecx, 0x4ffdbc
mov esi, eax
call fcn.0040e200
mov eax, dword [esi + 0x20]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [0x4ffb5c]
call fcn.00409380
mov esi, dword [esp + 0xc]
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.0040c840
test eax, eax
mov byte [esp + 0x34], 0
lea eax, [esi - 0x10]
je 0x4106f7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4106cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x10], 0x4c8510
je 0x4106e5
push eax
call fcn.004a1079
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41070e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x10], 0x4c8510
je 0x410727
push eax
call fcn.004a1079
add esp, 4
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret