Function at 0x5affc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6dea88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
or eax, 0xffffffff
xor ebx, ebx
push edi
mov dword [esp + 0x44], 0x400
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], ecx
push 0x20
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], 0x100000
mov dword [esp + 0x3c], 0x800000
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ebx
call fcn.0062b2a0
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x48]
xor edx, edx
cmp eax, ecx
setge dl
push 0xa
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edx
call fcn.0062b2a0
mov edi, eax
mov dword [esp + 0x1c], edi
mov ecx, 0x1f
xor eax, eax
shr ecx, 1
inc eax
cmp ecx, ebx
jne 0x5b0053
push eax
lea ecx, [esp + 0x34]
call fcn.0062b2a0
add eax, 2
mov dword [esp + 0x24], eax
push 0x1e
push 3
mov eax, ebp
lea ebx, [esp + 0x38]
call fcn.005aff30
push 0x1c
push 3
mov eax, ebp
call fcn.005aff30
push 0x1a
push 3
mov eax, ebp
call fcn.005aff30
push 0x12
push 0xff
mov eax, ebp
call fcn.005aff30
shl edi, 2
push edi
call fcn.0062a380
mov ebx, eax
push edi
mov dword [esp + 0x48], ebx
call fcn.0062a380
push edi
mov dword [esp + 0x3c], eax
call fcn.0062a380
mov dword [esp + 0x40], eax
lea eax, [esp + 0x44]
push eax
push ebx
lea ebx, [esp + 0x64]
call fcn.005afeb0
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x4c]
push ecx
push edx
call fcn.005afeb0
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.005afeb0
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x60]
xor edx, edx
add esp, 0x44
cmp esi, ebx
setge dl
lea eax, [edi + ebp]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x50], edx
jle 0x5b01c7
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
sub edx, ebp
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x14]
sub ecx, ebp
sub edx, ebp
mov esi, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], edx
jmp 0x5b0143
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
mov ebx, dword [esp + 0x24]
sub eax, ebp
and edx, 0xfffc0000
or eax, edx
mov edx, dword [esp + 0x64]
mov dword [esi], eax
mov eax, dword [ecx + esi]
lea ecx, [esp + 0x68]
push ecx
push ebx
push edi
push edx
lea ecx, [esp + 0x40]
push ecx
call dword [eax*4 + 0x75a6f4]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + esi]
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x7c]
push ecx
push ebx
push edi
push edx
lea ecx, [esp + 0x54]
push ecx
call dword [eax*4 + 0x75a704]
mov edx, dword [esp + 0x54]
mov eax, dword [edx + esi]
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x90]
push ecx
push ebx
push edi
push edx
lea ecx, [esp + 0x68]
push ecx
call dword [eax*4 + 0x75a71c]
mov eax, dword [esp + 0x58]
add esp, 0x3c
inc edi
add esi, 4
cmp edi, eax
jl 0x5b013b
mov eax, dword [0x80edc8]
test eax, eax
jne 0x5b01e5
push 0x7c2190
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x80edc8], 1
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x7c2190
call esi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x80ed7c
call edi
mov edx, dword [esp + 0x20]
push edx
call fcn.0068662d
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esp, 4
push 0x80ed7c
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7c2190
call ebp
mov eax, dword [0x80edc8]
test eax, eax
jne 0x5b0244
push 0x7c2190
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x80edc8], 1
push 0x7c2190
call esi
push 0x80ed7c
call edi
mov eax, dword [esp + 0x10]
push eax
call fcn.0068662d
add esp, 4
push 0x80ed7c
call ebx
push 0x7c2190
call ebp
mov eax, dword [0x80edc8]
test eax, eax
jne 0x5b028b
push 0x7c2190
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x80edc8], 1
push 0x7c2190
call esi
push 0x80ed7c
call edi
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0068662d
add esp, 4
push 0x80ed7c
call ebx
push 0x7c2190
call ebp
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5b030b
mov eax, dword [0x80edc8]
test eax, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
jne 0x5b02e2
push 0x7c2190
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x80edc8], 1
push 0x7c2190
call esi
push 0x80ed7c
call edi
mov eax, dword [esp + 0x2c]
push eax
call fcn.0068662d
add esp, 4
push 0x80ed7c
call ebx
push 0x7c2190
call ebp
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret