Function at 0x40cef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x466330
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
push ebx
push ebp
push esi
sub eax, 0x10
push edi
push eax
call fcn.004019b0
add eax, 0x10
add esp, 4
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x34]
xor ebp, ebp
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call fcn.00405660
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.004021e0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x30]
call fcn.00405440
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x10], ebp
jle 0x40d182
mov edi, edi
mov edi, dword [esp + 0x30]
mov ecx, dword [edi - 0xc]
xor eax, eax
test ecx, ecx
jl 0x40d153
cmp byte [edi], 0x22
jne 0x40cfc9
cmp ecx, 1
jg 0x40cfb0
or eax, 0xffffffff
jmp 0x40cfc9
lea eax, [edi + 1]
push 0x22
push eax
call fcn.004254e8
add esp, 8
test eax, eax
jne 0x40cfc7
or eax, 0xffffffff
jmp 0x40cfc9
sub eax, edi
test eax, eax
mov ecx, dword [edi - 0xc]
jl 0x40d15d
cmp eax, ecx
jge 0x40d15d
add eax, edi
push 0x2c
push eax
call fcn.004254e8
add esp, 8
test eax, eax
je 0x40d15d
sub eax, edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d15d
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
call fcn.004054e0
mov ecx, dword [esp + 0x38]
mov ebp, dword [ecx + ebp*4]
mov ecx, dword [eax]
mov esi, dword [ebp]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
mov byte [esp + 0x28], 2
je 0x40d071
mov edx, dword [esi + 0xc]
test edx, edx
jl 0x40d065
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40d065
push eax
call fcn.004019b0
mov dword [esp + 0x18], eax
add esp, 4
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d059
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0x10
mov dword [ebp], eax
jmp 0x40d071
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebp
call fcn.00401e30
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d094
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x10]
mov ecx, dword [eax + ebp*4]
push 0x4698f4
push 0x46c1f8
call fcn.0040cc20
inc ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x38]
call fcn.00405660
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
mov byte [esp + 0x28], 3
je 0x40d115
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x40d107
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40d107
push eax
call fcn.004019b0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40d0fe
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x30], ebx
jmp 0x40d115
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.00401e30
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d138
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x30]
call fcn.00405440
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
mov dword [esp + 0x10], ebp
jge 0x40d182
jmp 0x40cf90
push 0x80070057
call fcn.00401500
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + ebp*4]
lea eax, [esp + 0x30]
push eax
call fcn.004021e0
mov ecx, dword [esi + ebp*4]
push 0x4698f4
push 0x46c1f8
call fcn.0040cc20
jmp 0x40d186
mov edi, dword [esp + 0x30]
add edi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1a8
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret