Function at 0x43e180
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 [0x5c1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x43e1b7
mov eax, dword [0x5c3480]
cmp eax, 0xffffffff
je 0x43e240
mov ebx, 0x100000
test eax, eax
jne 0x43e1b7
mov ebx, 0x80000
push 0x10
call fcn.004f190e
add esp, 4
mov esi, eax
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5ca8dc]
bt ecx, eax
jae 0x43e232
push edi
call fcn.004bf6f0
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 0x43e5f0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x43e271
test edi, edi
je 0x43e264
mov dword [edi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1eb0
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x5d28dc], 1
jmp 0x43e1e2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x5c3480
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x43e365
mov eax, dword [0x5c3480]
jmp 0x43e1a9
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x43e219
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp eax, 0x27a
jg 0x43e30b
cmp dword [ebp - 0x20], 8
je 0x43e321
cmp dword [ebp - 0x20], 0xe
je 0x43e321
mov eax, dword [0x5c86f4]
mov ecx, dword [0x5c4ca4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x43e38a
lea ebx, [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call fcn.0044b300
add esp, 8
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x43e2d9
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
test eax, eax
js 0x43e374
je 0x43e2eb
test ebx, ebx
je 0x43e37b
push eax
push ebx
push dword [0x5c86f0]
call fcn.004642b0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x43e32a
push dword [ebp - 0x1c]
call fcn.004f193e
jmp 0x43e327
cmp dword [ebp - 0x20], 0x5af
je 0x43e321
cmp dword [ebp - 0x20], 0x27b
jne 0x43e29b
push ebx
call fcn.005448b0
add esp, 4
test esi, esi
mov eax, edi
je 0x43e219
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5ca8dc]
bt edx, ecx
jae 0x43e355
push eax
call fcn.004bf820
add esp, 4
push esi
call fcn.004f193e
add esp, 4
mov eax, edi
jmp 0x43e219
mov dword [0x5c3480], 0
jmp 0x43e1b2
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 0x43e380
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 0x59a9a3
call fcn.00523170
push 0x5c86f4
call fcn.004f1981
add esp, 4
cmp dword [0x5c86f4], 0xffffffff
jne 0x43e2bc
push 0x20
push str.create_thread_last_error
call fcn.00464290
add esp, 8
mov dword [0x5c86f0], eax
push 0x5c86f4
call fcn.004f19fb
add esp, 4
jmp 0x43e2bc