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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403da7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
mov dword [ebp - 0x1ac], ecx
mov eax, dword [ebp + 8]
push eax
push 0x66
mov ecx, dword [ebp - 0x1ac]
call sub.MFC42.DLL_CDialog::CDialog
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x64
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x68
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 3
push fcn.00402cd0
push 0x20
push 0x10
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x100
push ecx
call fcn.00403280
push fcn.00402cd0
push 0x20
push 0x10
mov edx, dword [ebp - 0x1ac]
add edx, 0x300
push edx
call fcn.00403280
push fcn.0040356c
push sub.MFC42.DLL_CString::CString_1
push 0x20
push 4
mov eax, dword [ebp - 0x1ac]
add eax, 0x500
push eax
call fcn.00403812
mov byte [ebp - 4], 4
push fcn.0040356c
push sub.MFC42.DLL_CString::CString_1
push 0x20
push 4
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x580
push ecx
call fcn.00403812
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x600
call fcn.00402cc0
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x608
call fcn.00402d80
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x610
call fcn.00402d80
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x618
call fcn.00402d80
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x620
call fcn.00402d80
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x1ac]
mov dword [edx], 0x4044e0
push 0x80
call fcn.00402cb0
mov ecx, eax
call fcn.00403150
mov ecx, dword [ebp - 0x1ac]
mov dword [ecx + 0x630], eax
lea edx, [ebp - 0x110]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x19c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xa
push 0x5c
lea ecx, [ebp - 0x19c]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x198], eax
lea ecx, [ebp - 0x19c]
call fcn.00402bc0
sub eax, 1
cmp dword [ebp - 0x198], eax
jne 0x4019a6
lea ecx, [ebp - 0x19c]
call fcn.00402bc0
sub eax, 1
push eax
lea ecx, [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x19c]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x1b0], eax
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1b4], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x19c]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1a4]
call fcn.0040356c
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x64
call sub.MFC42.DLL_CString::operator_1
push str.AUTORUN.INF
mov edx, dword [ebp - 0x1ac]
add edx, 0x64
push edx
lea eax, [ebp - 0x1a8]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1bc], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x1bc]
push edx
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1a8]
call fcn.0040356c
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call fcn.00402c00
push eax
push 0x80
lea eax, [ebp - 0x194]
push eax
push 0
push str.title
push 0x406038
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x194]
push ecx
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x68
call fcn.00403638
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call fcn.00402c00
push eax
push 0
push str.button_number
push 0x406050
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x1ac]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x1ac]
cmp dword [eax + 0x6c], 0
jl 0x401a94
mov ecx, dword [ebp - 0x1ac]
cmp dword [ecx + 0x6c], 0x20
jle 0x401aa1
mov edx, dword [ebp - 0x1ac]
mov dword [edx + 0x6c], 0
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call fcn.00402c00
push eax
push 0
push str.button_thickness
push 0x40606c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x1ac]
mov dword [ecx + 0x70], eax
mov edx, dword [ebp - 0x1ac]
cmp dword [edx + 0x70], 0
jl 0x401ae3
mov eax, dword [ebp - 0x1ac]
cmp dword [eax + 0x70], 0xa
jle 0x401af0
mov ecx, dword [ebp - 0x1ac]
mov dword [ecx + 0x70], 2
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call fcn.00402c00
push eax
push 0
push str.button_same_size
push 0x406088
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x1ac]
mov dword [edx + 0x74], eax
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call fcn.00402c00
push eax
push 0
push str.button_width
push 0x4060a0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x1ac]
mov dword [ecx + 0x78], eax
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call fcn.00402c00
push eax
push 0
push str.button_height
push str.setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x1ac]
mov dword [edx + 0x7c], eax
mov dword [ebp - 0x114], 0
jmp 0x401b89
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x114]
cmp edx, dword [ecx + 0x6c]
jge 0x401eeb
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x1ac]
mov dword [ecx + eax*4 + 0x80], 0
lea ecx, [ebp - 0x1a0]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x114]
push edx
push str.button_d
lea eax, [ebp - 0x1a0]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call fcn.00402c00
push eax
push 0
push str.left
lea ecx, [ebp - 0x1a0]
call fcn.00402c00
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x114]
shl ecx, 4
mov edx, dword [ebp - 0x1ac]
mov dword [edx + ecx + 0x100], eax
mov eax, dword [ebp - 0x114]
shl eax, 4
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ecx + 0x70]
shl edx, 1
mov ecx, dword [ebp - 0x1ac]
mov eax, dword [ecx + eax + 0x100]
sub eax, edx
mov ecx, dword [ebp - 0x114]
shl ecx, 4
mov edx, dword [ebp - 0x1ac]
mov dword [edx + ecx + 0x300], eax
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call fcn.00402c00
push eax
push 0
push 0x4060d4
lea ecx, [ebp - 0x1a0]
call fcn.00402c00
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x114]
shl ecx, 4
mov edx, dword [ebp - 0x1ac]
mov dword [edx + ecx + 0x104], eax
mov eax, dword [ebp - 0x114]
shl eax, 4
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ecx + 0x70]
shl edx, 1
mov ecx, dword [ebp - 0x1ac]
mov eax, dword [ecx + eax + 0x104]
sub eax, edx
mov ecx, dword [ebp - 0x114]
shl ecx, 4
mov edx, dword [ebp - 0x1ac]
mov dword [edx + ecx + 0x304], eax
mov eax, dword [ebp - 0x1ac]
cmp dword [eax + 0x74], 0
je 0x401d45
mov ecx, dword [ebp - 0x114]
shl ecx, 4
mov edx, dword [ebp - 0x1ac]
mov eax, dword [edx + ecx + 0x100]
mov ecx, dword [ebp - 0x1ac]
add eax, dword [ecx + 0x78]
mov edx, dword [ebp - 0x114]
shl edx, 4
mov ecx, dword [ebp - 0x1ac]
mov dword [ecx + edx + 0x108], eax
mov edx, dword [ebp - 0x114]
shl edx, 4
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + edx + 0x104]
mov edx, dword [ebp - 0x1ac]
add ecx, dword [edx + 0x7c]
mov eax, dword [ebp - 0x114]
shl eax, 4
mov edx, dword [ebp - 0x1ac]
mov dword [edx + eax + 0x10c], ecx
jmp 0x401dc1
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call fcn.00402c00
push eax
push 0
push str.right
lea ecx, [ebp - 0x1a0]
call fcn.00402c00
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x114]
shl ecx, 4
mov edx, dword [ebp - 0x1ac]
mov dword [edx + ecx + 0x108], eax
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call fcn.00402c00
push eax
push 0
push str.bottom
lea ecx, [ebp - 0x1a0]
call fcn.00402c00
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x114]
shl ecx, 4
mov edx, dword [ebp - 0x1ac]
mov dword [edx + ecx + 0x10c], eax
mov eax, dword [ebp - 0x114]
shl eax, 4
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ecx + 0x70]
mov ecx, dword [ebp - 0x1ac]
mov eax, dword [ecx + eax + 0x108]
lea ecx, [eax + edx*2]
mov edx, dword [ebp - 0x114]
shl edx, 4
mov eax, dword [ebp - 0x1ac]
mov dword [eax + edx + 0x308], ecx
mov ecx, dword [ebp - 0x114]
shl ecx, 4
mov edx, dword [ebp - 0x1ac]
mov eax, dword [edx + 0x70]
mov edx, dword [ebp - 0x1ac]
mov ecx, dword [edx + ecx + 0x10c]
lea edx, [ecx + eax*2]
mov eax, dword [ebp - 0x114]
shl eax, 4
mov ecx, dword [ebp - 0x1ac]
mov dword [ecx + eax + 0x30c], edx
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call fcn.00402c00
push eax
push 0x80
lea edx, [ebp - 0x194]
push edx
push 0
push str.command_type
lea ecx, [ebp - 0x1a0]
call fcn.00402c00
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x194]
push eax
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x1ac]
lea ecx, [edx + ecx*4 + 0x500]
call fcn.00403638
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x60
call fcn.00402c00
push eax
push 0x80
lea eax, [ebp - 0x194]
push eax
push 0
push str.command_line
lea ecx, [ebp - 0x1a0]
call fcn.00402c00
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x194]
push ecx
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x1ac]
lea ecx, [eax + edx*4 + 0x580]
call fcn.00403638
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1a0]
call fcn.0040356c
jmp 0x401b7a
push 0
push 1
push 0
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x608
call fcn.00402df0
push 0xf4f4f4
push 1
push 0
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x610
call fcn.00402df0
push 0xffffff
push 1
push 0
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x618
call fcn.00402df0
push 0x808080
push 1
push 0
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x620
call fcn.00402df0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x19c]
call fcn.0040356c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4