Function at 0x458660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov ebx, ecx
mov eax, dword [0x57f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x458697
mov eax, dword [0x581160]
cmp eax, 0xffffffff
je 0x458720
mov ebx, 0x100000
test eax, eax
jne 0x458697
mov ebx, 0x80000
push 0x10
call fcn.004e6c0e
add esp, 4
mov esi, eax
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x588150]
bt ecx, eax
jae 0x458712
push edi
call fcn.004b9fc0
add esp, 4
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
setne byte [esi + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
xor eax, eax
push eax
push 0x10000
push esi
push 0x458ad0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x458751
test edi, edi
je 0x458744
mov dword [edi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e71b0
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x590150], 1
jmp 0x4586c2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x581160
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x458845
mov eax, dword [0x581160]
jmp 0x458689
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4586f9
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp eax, 0x27a
jg 0x4587eb
cmp dword [ebp - 0x20], 8
je 0x458801
cmp dword [ebp - 0x20], 0xe
je 0x458801
mov eax, dword [0x585f84]
mov ecx, dword [0x5822ec]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45886a
lea ebx, [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call fcn.00463970
add esp, 8
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x4587b9
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
test eax, eax
js 0x458854
je 0x4587cb
test ebx, ebx
je 0x45885b
push eax
push ebx
push dword [0x585f80]
call fcn.00470930
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x45880a
push dword [ebp - 0x1c]
call fcn.004e6c3e
jmp 0x458807
cmp dword [ebp - 0x20], 0x5af
je 0x458801
cmp dword [ebp - 0x20], 0x27b
jne 0x45877b
push ebx
call fcn.0053b600
add esp, 4
test esi, esi
mov eax, edi
je 0x4586f9
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x588150]
bt edx, ecx
jae 0x458835
push eax
call fcn.004ba0f0
add esp, 4
push esi
call fcn.004e6c3e
add esp, 4
mov eax, edi
jmp 0x4586f9
mov dword [0x581160], 0
jmp 0x458692
push str....._third_partylibc_srcinclude_string_view:314:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
jmp 0x458860
push str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
push 0x55eb93
call fcn.00516c70
push 0x585f84
call fcn.004e6c81
add esp, 4
cmp dword [0x585f84], 0xffffffff
jne 0x45879c
push 0x20
push str.create_thread_last_error
call fcn.004708f0
add esp, 8
mov dword [0x585f80], eax
push 0x585f84
call fcn.004e6cfb
add esp, 4
jmp 0x45879c