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

Disassembly:
push 0xffffffffffffffff
push 0x572c68
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
lea ebx, [eax + 0x10]
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
mov dword [esp + 0x18], ebx
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x30]
add ecx, 0x2c
mov dword [esp + 0x28], 0
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [esp + 0x30], ecx
mov esi, ecx
mov ebp, eax
nop
test esi, esi
mov edi, dword [ecx + 4]
je 0x415bfb
cmp esi, ecx
je 0x415c01
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, edi
je 0x415d04
test esi, esi
jne 0x415c13
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [esi + 4]
jne 0x415c1e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 8]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x415c6d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x415c60
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x415c60
call fcn.00410660
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x415c57
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x415c6d
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00410570
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x415cc0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x415cb3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x415cb3
call fcn.00410660
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x415caa
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x1c], ebx
jmp 0x415cc0
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.00410570
mov ebx, dword [esp + 0x34]
mov esi, dword [ebx + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.00416710
mov ecx, ebx
mov edi, eax
call fcn.004167b0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x30]
mov dword [eax], edi
cmp ebp, dword [esi + 4]
jne 0x415cf6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp]
mov ebx, dword [esp + 0x18]
mov ecx, esi
jmp 0x415bf0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415d2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415d48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8