Function at 0x544d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x575fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0040ff50
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0xc]
mov dword [esp + 0x30], 0
call fcn.00546890
or ebp, 0xffffffff
mov ebx, eax
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x544d76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.0040ff50
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], 1
call fcn.00546700
mov esi, eax
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x18], esi
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x544dbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x544ee1
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x544ee1
cmp dword [esi + 4], eax
jb 0x544dee
mov dword [esi + 4], 0
mov edi, dword [esi + 4]
mov eax, dword [ebx + 4]
test eax, eax
je 0x544e12
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x544e18
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebx + 4]
lea ebp, [edi + edi*4]
add ebp, ebp
add ebp, ebp
add ebp, ebp
test esi, esi
je 0x544e42
mov ecx, dword [ebx + 8]
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x544e48
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebx + 4]
mov edx, dword [esi + ebp + 0x1c]
cmp edx, dword [ecx + ebp + 0x18]
jl 0x544ee5
mov ecx, ebx
add edi, 1
call fcn.0054c260
cmp edi, eax
jb 0x544e69
xor edi, edi
mov eax, dword [esp + 0x18]
cmp edi, dword [eax + 4]
jne 0x544df1
lea ecx, [esp + 0x34]
mov esi, eax
push ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 8], 0
call fcn.0040ff50
mov dword [esp + 0x2c], 2
call fcn.00544780
push eax
lea ecx, [esp + 0x38]
call fcn.00546700
mov edi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x544ed5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00544780
mov ecx, eax
call fcn.00549650
xor eax, eax
jmp 0x544f53
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 4], edi
call fcn.0040ff50
mov dword [esp + 0x2c], 3
call fcn.00544780
push eax
lea ecx, [esp + 0x1c]
call fcn.00546700
mov edi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x544f42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00544780
mov ecx, eax
call fcn.00549650
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4