Function at 0x54ef70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb374
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x14], 0
call fcn.0050a770
mov ecx, dword [ebp + 8]
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 4], 0
call fcn.0050a2e0
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], str..lnk
mov dword [ebp - 0x1c], 4
push 1
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
mov dword [ebp - 0x14], 1
call fcn.00492a40
test al, al
je 0x54f02f
push 0
push esi
call fcn.00511300
add esp, 8
mov byte [ebp - 0xd], 1
test al, al
je 0x54f033
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0x24]
or ebx, 0xffffffff
mov dword [ebp - 4], 2
test ecx, ecx
je 0x54f063
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x54f063
push 4
push 2
push dword [ebp - 0x24]
call fcn.00461780
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x54f145
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x78], 0
push eax
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x70], 0xffffffff
call fcn.00510830
add esp, 0xc
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x44]
call fcn.0050a770
mov edx, dword [edi]
mov esi, eax
mov ecx, dword [esi]
mov dword [edi], ecx
mov eax, dword [esi + 4]
mov dword [esi], edx
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x54f0f4
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x54f0f4
push 4
push 2
push dword [ebp - 0x24]
call fcn.00461780
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x54f11e
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x54f11e
push 4
push 2
push dword [ebp - 0x38]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x54f142
lock xadd dword [eax], ebx
cmp ebx, 1
setne al
test al, al
jne 0x54f142
push 4
push 2
push dword [ebp - 0x44]
call fcn.00461780
add esp, 0xc
lea esi, [edi + 0xc]
push 1
push ecx
mov eax, esp
mov ebx, 0x5c
mov ecx, edi
mov word [eax], bx
call fcn.00492aa0
test al, al
jne 0x54f16a
push ecx
mov eax, esp
mov ecx, edi
mov word [eax], bx
call fcn.00490310
push ecx
mov eax, esp
mov ecx, 0x2a
mov word [eax], cx
mov ecx, edi
call fcn.00490310
push 1
push ecx
mov eax, esp
mov ebx, 0x2f
mov ecx, esi
mov word [eax], bx
call fcn.00492aa0
test al, al
jne 0x54f1a1
push ecx
mov eax, esp
mov ecx, esi
mov word [eax], bx
call fcn.00490310
mov eax, dword [ebp + 0xc]
test al, 5
je 0x54f1c6
test al, 2
mov eax, edi
jne 0x54f1c8
mov byte [edi + 0x30], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10