Function at 0x486bc0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d1078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp byte [esp + 0x4c], 0
mov eax, dword [esp + 0x48]
push ebx
push ebp
mov ebp, dword [eax]
push esi
push edi
mov dword [esp + 0x24], ebp
je 0x486c00
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
jmp 0x486c0a
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x4ff56c
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], 0x4ff56c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
mov esi, 0x4ff588
mov dword [esp + 0x58], 0
call fcn.004879d0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [0x4ff5a0]
test esi, esi
je 0x486c54
cmp esi, dword [0x4ff588]
je 0x486c59
call fcn.0049f380
cmp edi, ebx
je 0x486cbd
test esi, esi
jne 0x486c7c
call fcn.0049f380
cmp edi, dword [esi + 0x18]
jne 0x486c70
call fcn.0049f380
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x486c80
mov eax, dword [edi + 4]
jmp 0x486c82
mov esi, dword [esi]
jmp 0x486c66
xor eax, eax
test eax, eax
je 0x486c89
sub eax, 2
push 0x4ff56c
test eax, 0xfffffffe
jne 0x486ca0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x486de1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
push 0x4d9064
lea ebx, [esp + 0x5c]
call fcn.00402bd0
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], esi
test esi, esi
je 0x486cfa
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x4ff588
mov byte [esp + 0x58], 2
call fcn.00487890
mov byte [esp + 0x50], 1
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test esi, esi
je 0x486d32
push esi
call edi
test eax, eax
jne 0x486d32
push esi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x50], 0
test esi, esi
je 0x486d4b
push esi
call edi
test eax, eax
jne 0x486d4b
push esi
call fcn.0049e96f
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x486df8
call fcn.0049f380
xor eax, eax
mov edi, dword [esp + 0x1c]
cmp edi, dword [eax + 0x18]
jne 0x486d6c
call fcn.0049f380
push 0x4ff56c
add edi, 0x1c
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1c
call fcn.0049e995
add esp, 4
push 0x4ff584
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], ebp
mov dword [esi + 8], edx
mov dl, byte [esp + 0x5c]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x486960
push 0
push 0
mov dword [esi], 0x4ff56c
mov dword [esi + 0x10], ecx
mov byte [esi + 0x14], dl
mov dword [esi + 0x18], edi
call fcn.004a18e7
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 8
mov eax, dword [eax]
jmp 0x486d5e