Function at 0x1d851e0
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 [0x1f07010]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x1d8523a
mov eax, dword [0x1f0a884]
cmp eax, 0xffffffff
jne 0x1d85220
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x1f0a884
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1d8522b
mov eax, dword [0x1f0a884]
mov ebx, 0x100000
test eax, eax
jne 0x1d8523a
jmp 0x1d85235
mov dword [0x1f0a884], 0
mov ebx, 0x80000
push 0x10
call fcn.01e5f33c
add esp, 4
mov esi, eax
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x1f12660]
bt ecx, eax
jae 0x1d85267
push edi
call fcn.01dad8e0
add esp, 4
jmp 0x1d85273
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x1f1a660], 1
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
push 0
push 0x10000
push esi
push 0x1d85690
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1d852ac
test edi, edi
je 0x1d85302
mov dword [edi], eax
jmp 0x1d8530d
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1d852c5
cmp eax, 0x5af
je 0x1d852c5
cmp eax, 0xe
jne 0x1d85326
push ebx
call fcn.01ddfe70
add esp, 4
test esi, esi
mov eax, edi
je 0x1d8530d
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x1f12660]
bt edx, ecx
jae 0x1d852f5
push eax
call fcn.01dad9e0
add esp, 4
push esi
call fcn.01e5f36c
add esp, 4
mov eax, edi
jmp 0x1d8530d
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], eax
mov eax, dword [0x1f104bc]
mov ecx, dword [0x1f0c740]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1d853c3
lea ebx, [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call fcn.01d978c0
add esp, 8
movzx eax, byte [ebp - 0x11]
test al, al
jns 0x1d8536d
mov eax, dword [ebp - 0x18]
test eax, eax
js 0x1d85394
mov ebx, dword [ebp - 0x1c]
je 0x1d8536d
test ebx, ebx
je 0x1d853a5
push eax
push ebx
push dword [0x1f104b8]
call fcn.01d8fc90
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x1d852ce
push dword [ebp - 0x1c]
call fcn.01e5f36c
jmp 0x1d852cb
push str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
push str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
push 0x13a
jmp 0x1d853b4
push str.string_view::string_view__CharT___size_t_:_received_nullptr
push str.__len__0____s___nullptr
push 0x13c
push str....._third_partylibc_srcinclude_string_view
push str._s:_d:_assertion__s_failed:__s_n
call fcn.01ce782c
push 0x1f104bc
call fcn.01e5f3e7
add esp, 4
cmp dword [0x1f104bc], 0xffffffff
jne 0x1d85346
push 0x20
push str.create_thread_last_error
call fcn.01d8fc70
add esp, 8
mov dword [0x1f104b8], eax
push 0x1f104bc
call fcn.01e5f45d
add esp, 4
jmp 0x1d85346