Function at 0x546f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3354
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
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.005027b0
mov ecx, dword [ebp + 8]
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 4], 0
call fcn.00502320
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.0048aa90
test al, al
je 0x54702f
push 0
push esi
call fcn.00509320
add esp, 8
mov byte [ebp - 0xd], 1
test al, al
je 0x547033
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0x24]
or ebx, 0xffffffff
mov dword [ebp - 4], 2
test ecx, ecx
je 0x547063
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x547063
push 4
push 2
push dword [ebp - 0x24]
call fcn.004597e0
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x547145
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.00508850
add esp, 0xc
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x44]
call fcn.005027b0
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 0x5470f4
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x5470f4
push 4
push 2
push dword [ebp - 0x24]
call fcn.004597e0
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x54711e
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x54711e
push 4
push 2
push dword [ebp - 0x38]
call fcn.004597e0
add esp, 0xc
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x547142
lock xadd dword [eax], ebx
cmp ebx, 1
setne al
test al, al
jne 0x547142
push 4
push 2
push dword [ebp - 0x44]
call fcn.004597e0
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.0048aaf0
test al, al
jne 0x54716a
push ecx
mov eax, esp
mov ecx, edi
mov word [eax], bx
call fcn.00488360
push ecx
mov eax, esp
mov ecx, 0x2a
mov word [eax], cx
mov ecx, edi
call fcn.00488360
push 1
push ecx
mov eax, esp
mov ebx, 0x2f
mov ecx, esi
mov word [eax], bx
call fcn.0048aaf0
test al, al
jne 0x5471a1
push ecx
mov eax, esp
mov ecx, esi
mov word [eax], bx
call fcn.00488360
mov eax, dword [ebp + 0xc]
test al, 5
je 0x5471c6
test al, 2
mov eax, edi
jne 0x5471c8
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