Function at 0x41c790
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d478
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
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.004168b0
lea ecx, [esp + 0x14]
lea esi, [edi + 0x20]
push ecx
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x3c], ebx
call fcn.0040d490
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esi + 4], edx
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c80f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
call fcn.004164c0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov dword [esp + 0x40], 1
call fcn.0041afe0
mov esi, eax
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 2
call fcn.0040d490
mov eax, dword [esi + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
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 0x41c86d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [edi + 0x38], ebx
mov ecx, dword [esp + 0x1c]
push 0x43f5cc
push ecx
call fcn.004294cf
add esp, 8
test eax, eax
setne al
test al, al
je 0x41c977
mov edx, dword [ebp + 0xc]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004168b0
sub esp, 8
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x4c], 3
call fcn.004164f0
mov ecx, edi
mov byte [esp + 0x48], 1
call fcn.0041a490
test eax, eax
jne 0x41c977
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.0041afe0
mov ebx, eax
mov ecx, dword [ebx]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [esp + 0x38], 4
cmp eax, esi
je 0x41c941
cmp dword [esi + 0xc], 0
jl 0x41c933
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41c933
push eax
call fcn.004013a0
mov dword [esp + 0x14], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c926
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x10]
add ecx, 0x10
mov dword [esp + 0x1c], ecx
jmp 0x41c941
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004015d0
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x20], edx
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c96d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi + 0x38], 0
je 0x41c870
lea ecx, [edi + 0x30]
call fcn.00401200
cmp dword [edi + 0x38], 0
je 0x41c9c4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c9ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, 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 8
mov ecx, dword [ebp + 8]
push ecx
sub esp, 8
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004164f0
mov ecx, edi
call fcn.0041b9c0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ca0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8