Function at 0x10053260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x10269bac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1024f438
push 0x64
mov edi, edx
mov esi, ecx
call fcn.101d4df3
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10053491
push 0x63
lea ecx, [ebx + 1]
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebx], 1
lea eax, [ebx + 4]
push 2
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
add esp, 0xc
mov dword [0x102ec9ec], ebx
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [ebx + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
xor edx, edx
lea ecx, [ebp - 0x48]
call fcn.10051b60
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
or ecx, 0xffffffff
mov edx, str.Pid_:
test eax, eax
cmove eax, ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov dword [0x102f0c0c], eax
call fcn.1004e650
push dword [0x102f0c0c]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0x1004e870
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x102cb198
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x10053341
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
lea eax, [ebp - 0x68]
test edi, edi
je 0x10053356
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x1005335d
xorps xmm0, xmm0
movups xmmword [ebp - 0x68], xmm0
movq qword [ebp - 0x58], xmm0
movups xmm0, xmmword [eax]
push 0x102cb198
movups xmmword [0x102ec9d0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [0x102ec9e0], xmm0
xorps xmm0, xmm0
movups xmmword [0x102ecbf0], xmm0
movq qword [0x102ecc00], xmm0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
cmp dword [0x102f0d14], 0
je 0x100533d0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.No_Connection_:
call fcn.1004e650
push 0x1004e870
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d4758
mov esp, ebp
pop ebp
ret
mov dword [0x102f0e20], 0x102c1aa0
test esi, esi
je 0x10053406
cmp byte [esi], 0
mov ecx, 0x102f0e30
je 0x10053403
mov edx, 1
sub edx, esi
nop
lea eax, [esi + edx]
cmp eax, 0x40
jae 0x10053403
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
cmp byte [esi], 0
jne 0x100533f0
mov byte [ecx], 0
mov esi, dword [0x102ec9ec]
mov al, 1
mov dword [0x102f0d14], 0x102f0e20
mov dword [0x102f0e28], 0x100534b0
mov dword [0x102f0e2c], 0x100535d0
xchg byte [esi], al
push 4
call fcn.101d477e
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10053b70
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x10053482
cmp dword [esi + 0x60], 0
je 0x10053468
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d4758
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x4c], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [0x102ec9ec], 0
pop ebx
call fcn.101d4758
mov esp, ebp
pop ebp
ret