Function at 0x4ffc20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58a408
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [esp + 0x30], esi
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov byte [esp + 0x30], 1
mov dword [eax], esi
mov dword [ecx], esi
mov eax, dword [edx]
mov eax, dword [eax - 0xc]
cmp eax, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
je 0x4ffe2b
mov edx, dword [esp + 0x38]
push 0x5b5790
lea ecx, [esp + 0x24]
push ecx
push edx
lea ebx, [esp + 0x28]
xor ebp, ebp
call fcn.00440fd0
mov byte [esp + 0x30], 2
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4ffd13
cmp dword [esi + 0xc], ebp
lea edi, [esi + 0xc]
jl 0x4ffd06
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4ffd06
call fcn.00481090
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4ffcfd
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x4ffd13
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00480ff0
mov ebx, 1
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ffd3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
je 0x4ffe1e
lea ebx, [esp + 0x14]
call fcn.00413bc0
mov edi, eax
call fcn.00412100
mov edx, dword [esp + 0x14]
push 0x5b5794
push edx
call fcn.005645c3
mov esi, dword [esp + 0x44]
add esp, 8
test eax, eax
jne 0x4ffd7a
or dword [esi], 2
lea ebp, [eax + 1]
mov eax, dword [esp + 0x14]
push 0x5b57a0
push eax
call fcn.005645c3
add esp, 8
test eax, eax
jne 0x4ffd96
or dword [esi], 1
lea ebp, [eax + 1]
mov ecx, dword [esp + 0x14]
push str.shift
push ecx
call fcn.005645c3
add esp, 8
test eax, eax
jne 0x4ffdb4
or dword [esi], 4
jmp 0x4ffca3
test ebp, ebp
jne 0x4ffca3
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 1
jne 0x4ffca3
push 0x5b57b4
push eax
call fcn.005645c3
add esp, 8
test eax, eax
jl 0x4ffca3
mov edx, dword [esp + 0x14]
push 0x5b57b8
push edx
call fcn.005645c3
add esp, 8
test eax, eax
jg 0x4ffca3
lea edi, [esp + 0x14]
call fcn.004815c0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebp
jl 0x4ffe90
movsx eax, byte [eax]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
jmp 0x4ffca3
mov edx, dword [esp + 0x40]
cmp dword [edx], 0
je 0x4ffe2b
mov dword [esp + 0x18], ebx
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ffe50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ffe78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00473d10
int3