Function at 0x5f4050
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x66a44c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push edi
mov eax, dword [0x76c12c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x5c], 1
mov edi, dword [esi + 0x5c]
sub edi, dword [esi + 0x58]
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
sar edi, 4
xor ebp, ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
cmp edi, ebx
jbe 0x5f40e4
lea esp, [esp]
mov ecx, ebp
lea eax, [esp + 0x24]
lea edx, [esi + 0x50]
call fcn.0044dc40
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push ecx
lea ecx, [esp + 0x44]
push ecx
call fcn.0044df10
inc ebp
cmp ebp, edi
jb 0x5f40b0
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub edx, eax
sar edx, 2
xor edi, edi
test edx, edx
je 0x5f4171
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x30], ebx
jne 0x5f4127
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + edi*4]
mov ecx, dword [eax + 0x18]
mov ebp, dword [eax + 0x10]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x14]
add ebp, ecx
adc eax, edx
add ebp, 0xffffffff
adc eax, 0xffffffff
push eax
push ebp
push edx
push ecx
lea ecx, [esp + 0x44]
push ecx
call fcn.0044df10
mov edx, dword [esi + 0x14]
mov eax, dword [edx + edi*4]
cmp dword [eax + 0x30], 2
jne 0x5f4161
cmp dword [eax + 0x24], ebx
ja 0x5f413d
cmp dword [eax + 0x20], ebx
jbe 0x5f4161
mov ecx, dword [eax + 0x18]
mov ebp, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
add ebp, ecx
adc eax, edx
add ebp, 0xffffffff
adc eax, 0xffffffff
push eax
push ebp
push edx
push ecx
lea ecx, [esp + 0x44]
push ecx
call fcn.0044df10
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub edx, eax
inc edi
sar edx, 2
cmp edi, edx
jb 0x5f40f5
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0044dcb0
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
sub ecx, ebp
sbb edx, dword [esp + 0x18]
mov eax, ecx
or eax, edx
jne 0x5f434c
mov eax, esi
call fcn.005ef8a0
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x5f41f9
push ebx
push ebx
push str.FindWorkerWithMoreWork_return__1.___lld_
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x8c], esp
push 0x1d
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push 0x6d2754
mov word [ecx], dx
call fcn.00401f00
mov byte [esp + 0x84], 2
push 5
mov byte [esp + 0x88], 1
call fcn.00557cb0
add esp, 0x2c
jmp 0x5f43c2
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x14]
sbb edx, dword [eax + 0x24]
jne 0x5f4219
cmp ecx, 0x19000
jbe 0x5f4302
mov edi, edx
mov ebp, ecx
shrd ebp, edi, 1
shr edi, 1
mov eax, ecx
sub eax, ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x14], edi
mov edi, edx
sbb edi, dword [esp + 0x14]
sub ecx, eax
sbb edx, edi
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x14]
mov edx, dword [edx + ebp*4]
mov ebp, dword [edx + 0x20]
add ebp, eax
mov eax, dword [edx + 0x24]
mov dword [edx + 0x10], ebp
adc eax, edi
mov dword [edx + 0x14], eax
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [edx + eax*4]
mov eax, dword [edx + 0x18]
add eax, dword [edx + 0x10]
mov edi, dword [edx + 0x1c]
adc edi, dword [edx + 0x14]
mov ebp, dword [esp + 0x64]
mov edx, eax
add edx, ecx
mov ecx, edi
adc ecx, dword [esp + 0x18]
add ebp, ebp
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x14]
add ebp, ebp
mov ecx, dword [ecx + ebp]
mov dword [ecx + 0x18], eax
sub edx, eax
mov eax, dword [esp + 0x20]
sbb eax, edi
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0xa0], ebx
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x20], ebx
mov dword [ecx + 0x24], ebx
mov byte [ecx + 0x28], 1
mov dword [ecx + 0x30], ebx
mov byte [ecx + 0x78], bl
mov dword [ecx + 0x80], ebx
mov byte [ecx + 0x7a], bl
mov word [ecx + 0x84], bx
mov dword [ecx + 0x88], ebx
mov word [ecx + 0x7b], bx
mov edx, dword [esi + 0x14]
mov ecx, dword [edx + eax*4]
cmp byte [ecx + 0x79], bl
je 0x5f42de
mov eax, ecx
mov byte [eax + 0x7a], 1
mov eax, dword [esi + 0x14]
mov edx, dword [eax + ebp]
lea ecx, [esp + 0x64]
push ecx
push ebx
push edx
push 0x5f2ff0
push ebx
push ebx
call fcn.0058e2b3
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + ebp]
jmp 0x5f43b9
push edx
push ecx
push str.workLeft___lld____MIN_SPLIT_CHUNK_SIZE
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x8c], esp
push 0x1d
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push str.WorkerManager::ReAssignWorker
mov word [ecx], ax
call fcn.00401f00
mov byte [esp + 0x84], 3
push 5
mov byte [esp + 0x88], 1
call fcn.00557cb0
add esp, 0x2c
jmp 0x5f43c2
mov eax, dword [esi + 0x14]
mov edi, dword [esp + 0x64]
add edi, edi
add edi, edi
mov eax, dword [edi + eax]
mov dword [eax + 0x18], ebp
mov ebp, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0x1c], ebp
mov dword [eax + 0x14], edx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov byte [eax + 0x28], 1
mov dword [eax + 0x30], ebx
mov byte [eax + 0x78], bl
mov dword [eax + 0x80], ebx
mov byte [eax + 0x7a], bl
mov word [eax + 0x84], bx
mov dword [eax + 0x88], ebx
mov word [eax + 0x7b], bx
mov eax, dword [esi + 0x14]
mov edx, dword [eax + edi]
lea ecx, [esp + 0x64]
push ecx
push ebx
push edx
push 0x5f2ff0
push ebx
push ebx
call fcn.0058e2b3
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + edi]
mov dword [edx + 0x8c], eax
add esp, 0x18
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x5f43db
push eax
call fcn.0058d051
add esp, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x50
ret 4