Function at 0x41c290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d428
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x44d37c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x1c]
call fcn.004164c0
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], ebx
call fcn.004164c0
push 0x4402c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 1
call fcn.004168b0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 2
call fcn.0040d490
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x20], ecx
mov byte [esp + 0x38], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c329
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00419590
mov ecx, 1
cmp dword [edi + 0x48], ecx
jge 0x41c34c
mov dword [edi + 0x58], ebx
jmp 0x41c4af
mov eax, dword [edi + 0x40]
mov dword [edi + 0x58], eax
cmp eax, ebx
jne 0x41c35b
call fcn.0041cdbb
mov esi, dword [eax + 8]
cmp esi, ebx
je 0x41c4af
jmp 0x41c370
push 0x43ffa4
lea ecx, [esp + 0x28]
call fcn.004168b0
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add ebx, 0xfffffff0
mov byte [esp + 0x38], 3
cmp eax, ebx
je 0x41c3e6
cmp dword [ebx + 0xc], 0
jl 0x41c3d4
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x41c3d4
push eax
call fcn.004013a0
mov dword [esp + 0x14], eax
add esp, 4
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c3c7
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x10]
add ecx, 0x10
mov dword [esp + 0x14], ecx
jmp 0x41c3e2
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004015d0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
lea eax, [ecx - 0x10]
mov dword [esp + 0x18], edx
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c40f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x4402d8
lea ecx, [esp + 0x1c]
call fcn.00419590
mov eax, dword [esi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00419590
push 2
push 0x4402d4
lea ecx, [esp + 0x1c]
call fcn.00419590
add esi, 0xc
mov ecx, esi
call fcn.00416740
mov ecx, eax
call fcn.00416650
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00419590
push 1
push 0x4402d0
lea ecx, [esp + 0x1c]
call fcn.00419590
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00419590
cmp dword [edi + 0x58], 0
je 0x41c4aa
mov eax, dword [edi + 0x58]
test eax, eax
je 0x41c356
mov ecx, dword [eax]
mov eax, ecx
mov dword [edi + 0x58], ecx
test eax, eax
je 0x41c4aa
mov esi, dword [eax + 8]
test esi, esi
jne 0x41c370
mov ecx, 1
cmp dword [edi + 0x10], ecx
jge 0x41c538
mov edx, dword [edi + 0x30]
cmp dword [edx - 0xc], ecx
jge 0x41c538
push 0x4402cc
lea ecx, [esp + 0x28]
call fcn.004168b0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 4
call fcn.0040d490
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x18], ecx
mov byte [esp + 0x38], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c50e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00419590
mov eax, dword [esp + 0x1c]
mov edx, dword [eax - 0xc]
mov ecx, dword [ebp + 8]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x38]
push eax
call edx
jmp 0x41c72a
push 0x4402c8
lea ecx, [esp + 0x28]
call fcn.004168b0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.0040d490
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x18], edx
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c586
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00419590
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
push ecx
push eax
mov eax, dword [edx + 0x38]
mov ecx, ebx
call eax
mov ecx, dword [edi + 0x30]
cmp dword [ecx - 0xc], 0
lea esi, [edi + 0x30]
jle 0x41c65a
push 0xa
mov ecx, esi
call fcn.00401570
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebx]
push ecx
push eax
mov eax, dword [edx + 0x38]
mov ecx, ebx
call eax
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
dec eax
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004165d0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 6
call fcn.004164f0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov byte [esp + 0x3c], 7
call fcn.0040d490
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esi + 4], ecx
mov byte [esp + 0x38], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c635
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c65a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi + 0x10], 1
jge 0x41c669
mov dword [edi + 0x5c], 0
jmp 0x41c6a9
mov eax, dword [edi + 8]
mov dword [edi + 0x5c], eax
test eax, eax
je 0x41c6a9
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x41c6a9
lea ebx, [ebx]
push ebx
call fcn.0041c290
cmp dword [edi + 0x5c], 0
je 0x41c6a9
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x41c356
mov ecx, dword [eax]
mov eax, ecx
mov dword [edi + 0x5c], ecx
test eax, eax
je 0x41c6a9
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41c680
push 0x4402c4
lea ecx, [esp + 0x28]
call fcn.004168b0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 8
call fcn.0040d490
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c6f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi + 0x20]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.00419590
push 2
push 0x4402c8
lea ecx, [esp + 0x24]
call fcn.00419590
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebx]
push ecx
push eax
mov eax, dword [edx + 0x38]
mov ecx, ebx
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x38], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c74f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x38], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c773
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4