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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc54
xor eax, eax
push ebx
push esi
push edi
mov edi, 0x466400
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 1], 1
mov byte [ebp - 2], 0
mov dword [ebp - 0xc], eax
lea edx, [edi + 0x47]
push 2
push edx
push esi
call fcn.0042be6c
add esp, 0xc
test eax, eax
je 0x417823
movsx ecx, byte [esi + 1]
cmp ecx, 0x3a
je 0x417823
push 0x104
lea eax, [ebp - 0x2a8]
push eax
call fcn.0042e588
add esp, 8
lea edx, [ebp - 0x2a8]
push edx
call fcn.0042bda0
pop ecx
movsx ecx, byte [ebp + eax - 0x2a9]
cmp ecx, 0x5c
je 0x417811
lea eax, [edi + 0x4a]
push eax
lea edx, [ebp - 0x2a8]
push edx
call fcn.0042bd64
add esp, 8
push esi
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.0042bd64
add esp, 8
jmp 0x41784c
push esi
push edi
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
lea esi, [ebp - 0x2a8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0
lea eax, [ebp - 0x2a8]
push eax
call fcn.0042da94
add esp, 8
test eax, eax
je 0x41786b
mov eax, 1
jmp 0x417c69
movsx esi, byte [ebp - 0x2a8]
push esi
call fcn.004304fc
pop ecx
cmp eax, 0x42
jg 0x417882
mov byte [ebp - 2], 1
test ebx, ebx
je 0x417922
push 2
lea eax, [edi + 0x4c]
push eax
push ebx
call fcn.0042be6c
add esp, 0xc
test eax, eax
je 0x4178f9
movsx edx, byte [ebx + 1]
cmp edx, 0x3a
je 0x4178f9
push 0x104
lea ecx, [ebp - 0x3ac]
push ecx
call fcn.0042e588
add esp, 8
lea eax, [ebp - 0x3ac]
push eax
call fcn.0042bda0
pop ecx
movsx edx, byte [ebp + eax - 0x3ad]
cmp edx, 0x5c
je 0x4178e7
lea ecx, [edi + 0x4f]
push ecx
lea eax, [ebp - 0x3ac]
push eax
call fcn.0042bd64
add esp, 8
push ebx
lea edx, [ebp - 0x3ac]
push edx
call fcn.0042bd64
add esp, 8
jmp 0x417929
push edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x3ac]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
jmp 0x417929
mov byte [ebp - 0x3ac], 0
push 0x20
push 1
lea eax, [ebp - 0x2a8]
push eax
call fcn.0042d8f0
add esp, 0xc
inc eax
je 0x41799c
lea edx, [ebp - 0x2a8]
push edx
call fcn.0042f6c8
pop ecx
inc eax
je 0x417955
mov byte [ebp - 1], 0
jmp 0x417975
cmp byte [ebp - 2], 0
je 0x417975
lea ecx, [ebp - 0x2a8]
push ecx
lea eax, [edi + 0x51]
push eax
call fcn.00418598
add esp, 8
xor eax, eax
jmp 0x417c69
cmp byte [ebp - 0x3ac], 0
je 0x4179bf
cmp byte [ebp - 1], 0
jne 0x4179bf
lea edx, [ebp - 0x2a8]
push edx
lea ecx, [ebp - 0x3ac]
push ecx
call fcn.0042eea8
add esp, 8
jmp 0x4179bf
cmp byte [ebp - 2], 0
je 0x4179bf
lea eax, [ebp - 0x2a8]
push eax
lea edx, [edi + 0x87]
push edx
call fcn.00418598
add esp, 8
xor eax, eax
jmp 0x417c69
cmp byte [ebp - 1], 0
je 0x417c64
mov dword [ebp - 0xa0], 0x94
lea edx, [ebp - 0xa0]
push edx
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0x90], 2
jne 0x417a16
push 5
test ebx, ebx
je 0x4179f6
lea ecx, [ebp - 0x2a8]
jmp 0x4179f8
xor ecx, ecx
push ecx
test ebx, ebx
je 0x417a05
lea eax, [ebp - 0x3ac]
jmp 0x417a0b
lea eax, [ebp - 0x2a8]
push eax
call sub.KERNEL32.DLL_MoveFileExA
jmp 0x417c3e
push 0x104
lea edx, [ebp - 0x2a8]
push edx
lea ecx, [ebp - 0x2a8]
push ecx
call sub.KERNEL32.DLL_GetShortPathNameA
test ebx, ebx
je 0x417a7a
push 0x104
lea eax, [ebp - 0x3ac]
push eax
lea edx, [ebp - 0x3ac]
push edx
call sub.KERNEL32.DLL_GetShortPathNameA
lea ecx, [edi + 0xc4]
push ecx
lea eax, [ebp - 0x3ac]
push eax
lea edx, [ebp - 0x2a8]
push edx
lea ecx, [edi + 0xbd]
push ecx
call sub.KERNEL32.DLL_WritePrivateProfileStringA
test eax, eax
jne 0x417c3e
xor eax, eax
jmp 0x417c69
lea edx, [edi + 0xdf]
lea ecx, [ebp - 0x3ac]
push edx
push 0x104
push ecx
lea eax, [edi + 0xdb]
push eax
lea edx, [edi + 0xd7]
push edx
lea ecx, [edi + 0xd0]
push ecx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea eax, [ebp - 0x3ac]
lea edx, [edi + 0xeb]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x417b01
test cl, cl
je 0x417acf
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x417b01
add eax, 2
add edx, 2
test cl, cl
jne 0x417ab3
jne 0x417b01
lea eax, [edi + 0xfa]
push eax
lea edx, [ebp - 0x2a8]
push edx
lea ecx, [edi + 0xf6]
push ecx
lea eax, [edi + 0xef]
push eax
call sub.KERNEL32.DLL_WritePrivateProfileStringA
test eax, eax
jne 0x417c3e
xor eax, eax
jmp 0x417c69
push 0x104
lea edx, [ebp - 0x1a4]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
test eax, eax
jne 0x417b1d
xor eax, eax
jmp 0x417c69
lea edx, [edi + 0x106]
push edx
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.0042bd64
add esp, 8
lea eax, [edi + 0x113]
push eax
lea edx, [ebp - 0x1a4]
push edx
call fcn.0042dfd0
add esp, 8
mov ebx, eax
test eax, eax
je 0x417bd5
push 2
push 0
push ebx
call fcn.0042e350
add esp, 0xc
push ebx
call fcn.0042e3c4
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 8
jle 0x417bce
mov edx, dword [ebp - 8]
inc edx
push edx
call fcn.0042b7bc
pop ecx
mov esi, eax
push 0
push 0
push ebx
call fcn.0042e350
add esp, 0xc
jmp 0x417bab
push 8
lea eax, [edi + 0x116]
push eax
push esi
call fcn.0042c00c
add esp, 0xc
test eax, eax
jne 0x417bab
mov dword [ebp - 0xc], 1
jmp 0x417bc7
push ebx
mov edx, dword [ebp - 8]
push edx
push esi
call fcn.0042dc54
add esp, 0xc
test byte [ebx + 0x12], 0x20
sete cl
and ecx, 1
test cl, cl
jne 0x417b8c
push esi
call fcn.0042b7cc
pop ecx
push ebx
call fcn.0042db24
pop ecx
cmp dword [ebp - 0xc], 0
je 0x417be3
lea eax, [edi + 0x11f]
jmp 0x417be9
lea eax, [edi + 0x122]
push eax
lea edx, [ebp - 0x1a4]
push edx
call fcn.0042dfd0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x417c0a
push ebx
call fcn.0042db24
pop ecx
xor eax, eax
jmp 0x417c69
cmp dword [ebp - 0xc], 0
jne 0x417c20
push ebx
lea edx, [edi + 0x125]
push edx
call fcn.0042e118
add esp, 8
lea ecx, [ebp - 0x2a8]
lea eax, [edi + 0x12f]
push ecx
push eax
push ebx
call fcn.0042e004
add esp, 0xc
push ebx
call fcn.0042db24
pop ecx
cmp byte [0x46a87c], 0
jne 0x417c64
lea edx, [edi + 0x174]
push edx
lea ecx, [edi + 0x137]
push ecx
call fcn.00418598
add esp, 8
mov byte [0x46a87c], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret