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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xe44
cmp eax, 2
push esi
push edi
jle 0x40101f
pop edi
mov eax, 7
pop esi
add esp, 0xe44
ret
cmp eax, 1
jne 0x40102a
mov dword [esp + 0x10], eax
jmp 0x40105a
mov eax, dword [esp + 0xe54]
mov ecx, dword [eax + 4]
mov ax, word [ecx + 2]
cmp ax, 0x76
je 0x401052
cmp ax, 0x56
je 0x401052
pop edi
mov eax, 7
pop esi
add esp, 0xe44
ret
mov dword [esp + 0x10], 0
lea edx, [esp + 0x14]
push edx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x834]
push eax
push 0x208
push ecx
call fcn.00401550
lea edx, [esp + 0x834]
lea eax, [esp + 0x21c]
push edx
push 0x208
push eax
call fcn.00401550
lea ecx, [esp + 0xc]
lea edx, [esp + 0x21c]
push ecx
push 0x208
push edx
call fcn.00401650
test eax, eax
jl 0x4010d4
mov eax, dword [esp + 0xc]
mov ecx, 0x208
sub ecx, eax
push 0x409230
lea edx, [esp + eax*2 + 0x220]
push ecx
push edx
call fcn.00401550
lea eax, [esp + 0x834]
lea ecx, [esp + 0x424]
push eax
push 0x208
push ecx
call fcn.00401550
lea edx, [esp + 0xc]
lea eax, [esp + 0x424]
push edx
push 0x208
push eax
call fcn.00401650
test eax, eax
jl 0x401127
mov eax, dword [esp + 0xc]
mov ecx, 0x208
sub ecx, eax
push 0x409218
lea edx, [esp + eax*2 + 0x428]
push ecx
push edx
call fcn.00401550
lea eax, [esp + 0x834]
push ebx
push eax
lea ecx, [esp + 0xa44]
push 0x208
push ecx
call fcn.00401550
lea edx, [esp + 0xa40]
push 0x5c
push edx
call fcn.00401fc7
add esp, 8
mov word [eax], 0
lea eax, [esp + 0x220]
push eax
push 0
push 0x409204
push 0x4091ec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
lea eax, [ebx + 3]
mov ecx, eax
shl ecx, 6
add ecx, eax
shl ecx, 3
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, ebx
mov esi, eax
shl ecx, 6
add ecx, ebx
xor eax, eax
shl ecx, 3
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
test ebx, ebx
jbe 0x401281
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 0x4091dc
lea eax, [esp + 0x24]
push 0x208
push eax
call fcn.004014e0
add esp, 0x10
lea ecx, [esp + 0x224]
lea edx, [esp + 0xc4c]
lea eax, [esp + 0x1c]
push ecx
push 0x208
push edx
push 0
push eax
push 0x4091ec
call ebp
lea ecx, [esp + 0xa44]
lea edx, [esp + 0x1c]
push ecx
push 0x208
push edx
call fcn.00401550
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push 0x208
push ecx
call fcn.00401650
test eax, eax
jl 0x401249
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc4e]
mov ecx, 0x208
push edx
sub ecx, eax
lea edx, [esp + eax*2 + 0x20]
push ecx
push edx
call fcn.00401550
lea eax, [esp + 0x10]
push eax
push 0x208
push esi
call fcn.00401650
test eax, eax
jl 0x401277
mov eax, dword [esp + 0x10]
mov edx, 0x208
lea ecx, [esp + 0x1c]
sub edx, eax
push ecx
lea eax, [esi + eax*2]
push edx
push eax
call fcn.00401550
inc edi
cmp edi, ebx
jb 0x4011c1
pop ebp
lea ecx, [esp + 0xc]
push ecx
push 0x208
push esi
call fcn.00401650
test eax, eax
pop ebx
jl 0x4012b3
mov eax, dword [esp + 8]
lea edx, [esp + 0x424]
mov ecx, 0x208
push edx
sub ecx, eax
lea edx, [esi + eax*2]
push ecx
push edx
call fcn.00401550
lea eax, [esp + 8]
push eax
push 0x208
push esi
call fcn.00401650
test eax, eax
jl 0x4012e4
mov eax, dword [esp + 8]
mov edx, 0x208
lea ecx, [esp + 0x21c]
sub edx, eax
push ecx
lea eax, [esi + eax*2]
push edx
push eax
call fcn.00401550
lea ecx, [esp + 0x834]
lea edx, [esp + 0x14]
push ecx
push 0x208
push edx
call fcn.00401550
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push 0x208
push ecx
call fcn.00401650
test eax, eax
jl 0x40132e
mov eax, dword [esp + 8]
mov edx, 0x208
sub edx, eax
push 0x4091b8
lea eax, [esp + eax*2 + 0x18]
push edx
push eax
call fcn.00401550
lea ecx, [esp + 0x14]
push ecx
push 0x208
push esi
call fcn.004015b0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4013a5
lea edx, [esp + 0x424]
push 2
push edx
lea eax, [esp + 0xa44]
push esi
push eax
call fcn.00401e90
add esp, 0x10
test eax, eax
je 0x401380
push 0x40918c
call fcn.00401f96
add esp, 4
mov eax, 9
pop edi
pop esi
add esp, 0xe44
ret
push 0x409164
call fcn.00401f96
push 0x40915c
call fcn.00401f00
add esp, 8
mov eax, 7
pop edi
pop esi
add esp, 0xe44
ret
lea ecx, [esp + 0x424]
push 1
push ecx
lea edx, [esp + 0xa44]
push esi
push edx
call fcn.00401e90
add esp, 0x10
test eax, eax
je 0x4013cb
push 0x409130
jmp 0x40136a
push 0
push 0x40911c
call dword [sym.imp.USER32.dll_FindWindowW]
push 0x4090f4
mov edi, eax
call fcn.00401f96
add esp, 4
lea eax, [esp + 0x62c]
push 0x4090d0
push 0x208
push eax
call fcn.00401550
test edi, edi
je 0x40149f
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x3f0
push edi
call esi
cmp eax, 1
jne 0x401432
push 0x409054
lea ecx, [esp + 0x630]
push 0x208
push ecx
call fcn.00401550
jmp 0x40149f
push 0x3f1
push edi
call esi
cmp eax, 1
jne 0x401458
push 0x4090d0
lea edx, [esp + 0x630]
push 0x208
push edx
call fcn.00401550
jmp 0x40149f
push 0x3f2
push edi
call esi
cmp eax, 1
jne 0x40149f
mov edx, 0x409030
lea ecx, [esp + 0x62c]
mov esi, 0x208
lea eax, [esp + 0x62c]
sub edx, ecx
mov cx, word [edx + eax]
test cx, cx
je 0x401493
mov word [eax], cx
add eax, 2
dec esi
jne 0x40147f
jmp 0x401497
test esi, esi
jne 0x40149a
sub eax, 2
mov word [eax], 0
push 4
lea edx, [esp + 0x630]
push 0
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4014c9
test edi, edi
je 0x4014c9
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov eax, 7
pop esi
add esp, 0xe44
ret