Function at 0x407040
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459b5b
mov eax, dword fs:[0]
push eax
sub esp, 0x5b4
mov eax, dword [0x46b00c]
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 ebx, ecx
mov dword [ebp - 0x5c0], ebx
push 0x400
lea eax, [ebp - 0x558]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x50]
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x158]
add esp, 0xc
push eax
push 0x104
call esi
push str.Memoryuser.apo
lea eax, [ebp - 0x158]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
mov dword [ebp - 0x5bc], 0
lea eax, [ebp - 0x158]
push 0x4655e4
push eax
lea eax, [ebp - 0x5bc]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
cmp dword [ebp - 0x5bc], 0
je 0x4072ee
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1009
push dword [0x46b96c]
call ebx
lea eax, [ebp - 0x558]
xor edi, edi
push eax
push 0x46570c
push dword [ebp - 0x5bc]
call fcn.00405cf0
add esp, 0xc
test eax, eax
jle 0x4072d9
nop dword [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x574], 0
push ecx
lea edx, [ebp - 0x558]
movq qword [ebp - 0x57c], xmm0
lea ecx, [ebp - 0x57c]
call fcn.00411290
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x578]
mov ecx, dword [ebp - 0x57c]
sub eax, ecx
sub eax, 0x90
cmp eax, 0x18
jae 0x407247
cmp dword [ecx + 0x14], 0x10
jb 0x407197
mov eax, dword [ecx]
jmp 0x407199
mov eax, ecx
cmp dword [ecx + 0x2c], 0x10
mov dword [ebp - 0x570], eax
lea eax, [ecx + 0x18]
mov dword [ebp - 0x56c], 0x464fb2
jb 0x4071b4
mov eax, dword [eax]
cmp dword [ecx + 0x44], 0x10
mov dword [ebp - 0x568], eax
lea eax, [ecx + 0x30]
jb 0x4071c5
mov eax, dword [eax]
cmp dword [ecx + 0x5c], 0x10
mov dword [ebp - 0x564], eax
lea eax, [ecx + 0x48]
jb 0x4071d6
mov eax, dword [eax]
add ecx, 0x60
mov dword [ebp - 0x560], eax
cmp dword [ecx + 0x14], 0x10
jb 0x4071e7
mov ecx, dword [ecx]
push ecx
lea edx, [ebp - 0x570]
mov dword [ebp - 0x55c], ecx
call fcn.004111e0
mov eax, dword [ebp - 0x57c]
add esp, 4
add eax, 0x78
mov dword [ebp - 0x5a8], 0xf000
cmp dword [eax + 0x14], 0x10
jb 0x407217
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
shl eax, 0xc
mov dword [ebp - 0x5ac], eax
lea eax, [ebp - 0x5b8]
push eax
push edi
push 0x102b
push dword [0x46b96c]
call ebx
inc edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x57c]
test ecx, ecx
je 0x4072b1
push dword [ebp - 0x5c0]
mov edx, dword [ebp - 0x578]
push ecx
call fcn.00409540
mov ecx, dword [ebp - 0x574]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x57c]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00409470
mov dword [ebp - 0x57c], 0
mov dword [ebp - 0x578], 0
mov dword [ebp - 0x574], 0
lea eax, [ebp - 0x558]
push eax
push 0x46570c
push dword [ebp - 0x5bc]
call fcn.00405cf0
add esp, 0xc
test eax, eax
jg 0x407140
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp - 0x5bc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ebx, dword [ebp - 0x5c0]
add esp, 4
lea eax, [ebp - 0x158]
push eax
push 0x104
call esi
push str.Memory_t.ttx
lea eax, [ebp - 0x158]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x158]
add esp, 0xc
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push 0x464fb2
push str.INTERVAL
push str.LOGIN
call esi
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
test eax, eax
je 0x407350
lea eax, [ebp - 0x50]
push eax
push 0x3fc
push ebx
call edi
lea eax, [ebp - 0x158]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push 0x464fb2
push str.IDC_CHK_RESTART
push str.LOGIN
call esi
test eax, eax
je 0x40738c
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push eax
push 0x22b
push ebx
call dword [sym.imp.USER32.dll_CheckDlgButton]
lea eax, [ebp - 0x158]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push 0x464fb2
push str.WAITETIME
push str.LOGIN
call esi
test eax, eax
je 0x4073ba
lea eax, [ebp - 0x50]
push eax
push 0x403
push ebx
call edi
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.0041150d
mov esp, ebp
pop ebp
ret