Function at 0x421c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b86cd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x506054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x14], edi
mov ebx, ecx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x50f3d0]
cmp eax, dword [esi + 4]
jle 0x421cf1
push 0x50f3d0
call fcn.00436657
add esp, 4
cmp dword [0x50f3d0], 0xffffffff
jne 0x421cf1
push 2
push 0x50f3d4
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
push 0x4bea90
call fcn.00436969
push 0x50f3d0
call fcn.0043660d
add esp, 0x10
push 0x50f3d4
mov dword [ebp - 0x50], 0x50f3d4
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x421d11
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x421ee0
test edi, edi
je 0x421ee0
mov ecx, ebx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421d46
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040bfd0
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421d80
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x34]
call fcn.0040bfd0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x421e76
cmp eax, 0x30
ja 0x421e76
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x421e76
cmp edi, 0x30
ja 0x421e76
cmp dword [0x50f204], 0
jne 0x421e76
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push eax
push ebx
push 0x50f218
mov dword [0x50f204], 2
mov byte [0x50e66f], 1
mov byte [0x50e66d], 1
call esi
push edi
push dword [ebp - 0x14]
push 0x50f1d4
call esi
push 4
call fcn.004364e1
mov dword [ebp - 0x14], eax
mov dword [eax], 0x422a50
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
push ecx
push 0
push eax
push 0x42c7d0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x34
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x421e67
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x421e45
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
je 0x421e5b
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
xorps xmm0, xmm0
mov bl, 1
movlpd qword [ebp - 0x1c], xmm0
jmp 0x421e78
push 6
mov dword [ebp - 0x18], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
xor bl, bl
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x421ea8
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x421e9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421ece
push ecx
push edx
call fcn.00436511
add esp, 8
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
jb 0x421ee2
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x421ed4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x421ed4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00436511
add esp, 8
jmp 0x421ee2
xor bl, bl
push 0x50f3d4
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004364d3
mov esp, ebp
pop ebp
ret