Function at 0x10031370
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100725ff
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x1008c0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x30], 0
je 0x100313b4
mov eax, 1
jmp 0x1003175f
cmp dword [ebp + 8], 0
je 0x1003175d
call fcn.1000eee0
test al, al
je 0x1003175d
sub esp, 0x28
mov eax, esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_void____cdecl___struct_IDirect3D9___struct_IDirect3DDevice9___struct__D3DPRESENT_PARAMETERS__const____void__struct_IDirect3D9___struct_IDirect3DDevice9___struct__D3DPRESENT_PARAMETERS__const__.0
mov dword [eax + 4], 0x1001f0d0
mov dword [eax + 0x24], eax
call fcn.1000f230
mov eax, esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_void____cdecl___void___void___.0
mov dword [eax + 4], 0x1001f140
mov dword [eax + 0x24], eax
call fcn.1000f500
mov eax, esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_void____cdecl___void___void___.0
mov dword [eax + 4], 0x1001f160
mov dword [eax + 0x24], eax
call fcn.1000f720
mov eax, esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_void____cdecl___struct_IDirect3DDevice9___struct__D3DPRESENT_PARAMETERS__const____void__struct_IDirect3DDevice9___struct__D3DPRESENT_PARAMETERS__const__.0
mov dword [eax + 4], 0x1001f1a0
mov dword [eax + 0x24], eax
call fcn.1000f8d0
mov eax, esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_void____cdecl___void___void___.0
mov dword [eax + 4], 0x1001f1e0
mov dword [eax + 0x24], eax
call fcn.1000fba0
add esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, eax
test edx, edx
je 0x10031705
mov ecx, edx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031470
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10002f70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xdc], 0x1007fdf0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x30], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0xe0], eax
lea eax, [ebp - 0xcc]
mov ecx, eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmova ecx, edx
mov dword [ebp - 0x2c], ecx
mov ecx, 2
mov dword [ebp - 0xcc], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp edi, 0x7fffffff
jbe 0x10031534
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_]
test edi, edi
je 0x100315ad
cmp edi, 0x1000
jb 0x10031567
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x1003177c
push eax
call fcn.1006bfd9
add esp, 4
test eax, eax
je 0x100316a7
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x10031572
push edi
call fcn.1006bfd9
add esp, 4
mov esi, eax
push edi
push dword [ebp - 0x2c]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0xc0]
lea ecx, [edi + esi]
mov edx, dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x94], ecx
mov ecx, 3
mov dword [eax], esi
mov eax, dword [ebp - 0xb0]
mov dword [eax], esi
mov eax, dword [ebp - 0xa0]
mov dword [eax], edi
mov eax, dword [ebp - 0x14]
jmp 0x100315b7
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], ecx
mov byte [ebp - 4], 5
cmp eax, 0xf
jbe 0x100315f1
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x100315e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100316a7
push ecx
push edx
call fcn.1006c392
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 6
nop
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xdc]
call fcn.10031cd0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
je 0x10031650
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmova ecx, dword [ebp - 0x28]
push 6
push str._svlib
call fcn.10003800
add esp, 8
test al, al
je 0x10031610
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xdc]
call fcn.10031cd0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
je 0x1003167d
lea eax, [ebp - 0x28]
mov ecx, str.samp.dll
push eax
call fcn.10023390
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100316b7
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100316ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100316ad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1006c392
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0xe0], eax
lea ecx, [ebp - 0xcc]
call fcn.10007960
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push 0x1007fdd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push 0
push 0x10031310
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call fcn.10006f40
call fcn.1000dbb0
cmp dword [0x1008eb20], 0
jne 0x1003174b
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x1008eb20], eax
xor eax, eax
mov ecx, 0x1008eb1c
xchg dword [ecx], eax
xor eax, eax
test esi, esi
setne al
jmp 0x1003175f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006bfcb
mov esp, ebp
pop ebp
ret 0xc
call fcn.10001710
int3