Function at 0x54d5f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c99d4
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
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.00508e40
mov ecx, dword [ebp + 8]
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 4], 0
call fcn.005089b0
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.00491140
test al, al
je 0x54d6af
push 0
push esi
call fcn.0050f9b0
add esp, 8
mov byte [ebp - 0xd], 1
test al, al
je 0x54d6b3
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0x24]
or ebx, 0xffffffff
mov dword [ebp - 4], 2
test ecx, ecx
je 0x54d6e3
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x54d6e3
push 4
push 2
push dword [ebp - 0x24]
call fcn.0045fe90
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x54d7c5
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.0050eee0
add esp, 0xc
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x44]
call fcn.00508e40
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 0x54d774
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x54d774
push 4
push 2
push dword [ebp - 0x24]
call fcn.0045fe90
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x54d79e
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x54d79e
push 4
push 2
push dword [ebp - 0x38]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x54d7c2
lock xadd dword [eax], ebx
cmp ebx, 1
setne al
test al, al
jne 0x54d7c2
push 4
push 2
push dword [ebp - 0x44]
call fcn.0045fe90
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.004911a0
test al, al
jne 0x54d7ea
push ecx
mov eax, esp
mov ecx, edi
mov word [eax], bx
call fcn.0048ea10
push ecx
mov eax, esp
mov ecx, 0x2a
mov word [eax], cx
mov ecx, edi
call fcn.0048ea10
push 1
push ecx
mov eax, esp
mov ebx, 0x2f
mov ecx, esi
mov word [eax], bx
call fcn.004911a0
test al, al
jne 0x54d821
push ecx
mov eax, esp
mov ecx, esi
mov word [eax], bx
call fcn.0048ea10
mov eax, dword [ebp + 0xc]
test al, 5
je 0x54d846
test al, 2
mov eax, edi
jne 0x54d848
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