Function at 0x1013d940
Capabilities:
Create thread
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101408fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov dword [ebp - 0x130], ecx
mov dword [ebp - 4], 1
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], eax
push 0x1014cf73
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x130]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x130]
mov eax, dword [edx + 0xcc]
call eax
movzx ecx, al
test ecx, ecx
jne 0x1013d9b6
jmp 0x1013dd16
mov dl, byte [ebp + 0x40]
push edx
mov eax, dword [ebp - 0x130]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x130]
mov eax, dword [edx + 0xb0]
call eax
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
movzx ecx, al
test ecx, ecx
jne 0x1013d9fd
lea ecx, [ebp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
movzx edx, al
test edx, edx
je 0x1013da40
mov ecx, dword [ebp - 0x130]
add ecx, 0x10
call dword [sym.imp.MSVCP80.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
movzx eax, al
test eax, eax
jne 0x1013da29
mov ecx, dword [ebp - 0x130]
add ecx, 0x48
call dword [sym.imp.MSVCP80.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
movzx ecx, al
test ecx, ecx
je 0x1013da3b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x1013dd16
jmp 0x1013dac3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
lea edx, [ebp + 0x24]
push edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x70], esp
lea edx, [ebp + 8]
push edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x130]
mov edx, dword [eax]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x130]
mov eax, dword [edx + 0x94]
call eax
mov byte [ebp - 0x13d], al
mov cl, byte [ebp - 0x13d]
mov byte [ebp - 0x3d], cl
movzx edx, byte [ebp - 0x3d]
test edx, edx
jne 0x1013dac3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x1013dd16
movzx eax, byte [ebp + 0x40]
test eax, eax
jne 0x1013dbd7
call fcn.10138830
mov dword [ebp - 0x144], eax
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0x130]
add ecx, 0x2c
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov edx, dword [ebp - 0x144]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x144]
mov edx, dword [eax]
call edx
movzx eax, al
test eax, eax
je 0x1013db17
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
movzx ecx, al
test ecx, ecx
je 0x1013db29
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x1013dd16
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x130]
add ecx, 0x9c
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [ebp - 0x130]
add ecx, 0x2c
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0
push 0x1014deb4
push 0x1014debc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0x130]
mov byte [ecx + 0xd], al
call fcn.10138830
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x148]
mov edx, dword [eax + 8]
call edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x130]
movzx ecx, byte [eax + 0xd]
test ecx, ecx
jne 0x1013dbac
mov eax, dword [ebp - 0x60]
call fcn.10026d50
test eax, eax
jbe 0x1013dbd5
lea edx, [ebp - 0x68]
push edx
push 0
mov eax, dword [ebp - 0x130]
push eax
push 0x1013b950
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1013dc22
call fcn.10138830
mov dword [ebp - 0x14c], eax
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x130]
add ecx, 0x2c
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14c]
mov eax, dword [edx + 4]
call eax
movzx ecx, al
test ecx, ecx
jne 0x1013dc22
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x1013dd16
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0xc8], esp
lea eax, [ebp - 0x3c]
push eax
call fcn.10117f50
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x154], ecx
mov byte [ebp - 4], 5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xcc], esp
mov edx, dword [0x101770a4]
push edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x11c]
push eax
mov byte [ebp - 4], 3
call fcn.1011d080
add esp, 0x50
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x160], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x160]
push edx
lea ecx, [ebp - 0xc4]
call fcn.1011d0f0
mov byte [ebp - 4], 7
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x130]
add ecx, 0xdc
call fcn.101184a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc4]
call fcn.10117fa0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.10117fa0
mov edx, dword [ebp - 0x130]
mov byte [edx + 0xb], 1
mov byte [ebp - 0x3d], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jne 0x1013d994
mov cl, byte [ebp - 0x3d]
mov byte [ebp - 0x129], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.10117f30
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x129]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x3c