Function at 0x5f7018
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb10
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x5f71db
mov eax, dword [0x61b68c]
cmp dword [eax + 0x14], 1
jbe 0x5f704b
cmp dword [ebp + 0xc], 0x8000
jge 0x5f7073
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
push eax
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.005f6f38
jmp 0x5f71db
mov eax, dword [0x61b68c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jle 0x5f708b
mov dword [ebp - 0x10], 4
mov eax, dword [ebp + 0xc]
cdq
idiv dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x10]
dec edi
test edi, edi
jl 0x5f7126
inc edi
lea ebx, [ebp - 0x4e0]
lea eax, [ebp - 0x4f0]
mov dword [ebp - 0x20], eax
mov esi, ebx
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
movzx eax, byte [ebp + 8]
mov byte [esi + 0xc], al
mov eax, dword [ebp - 4]
push esi
push edi
lea edi, [esi + 0x14]
mov esi, eax
mov ecx, 0x46
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea eax, [esi + 0x10]
push eax
push 0
push ebx
push 0x5f6fe8
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
shl eax, 4
add dword [ebp - 0x18], eax
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp + 0xc], eax
add dword [ebp - 0x20], 4
add ebx, 0x130
dec edi
jne 0x5f70bd
cmp dword [ebp + 0xc], 0
jle 0x5f714b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0xc]
push eax
movzx eax, byte [ebp + 8]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.005f6f38
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
add dword [ebp + 0xc], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
sub edx, dword [eax]
mov ebx, dword [ebp + 0xc]
shl ebx, 4
cmp edx, ebx
je 0x5f717a
mov ecx, 0x99e
mov edx, 0x5f71f0
mov eax, 0x5f729c
call fcn.00409404
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
sub edx, dword [eax]
cmp ebx, edx
je 0x5f719a
mov ecx, 0x99f
mov edx, 0x5f71f0
mov eax, 0x5f729c
call fcn.00409404
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x4f0]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WaitForMultipleObjects
mov edi, dword [ebp - 0x10]
dec edi
test edi, edi
jl 0x5f71db
inc edi
lea ebx, [ebp - 0x4f0]
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_CloseHandle_1
add ebx, 4
dec edi
jne 0x5f71cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8