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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a21a4
mov eax, dword fs:[0]
push eax
sub esp, 0xd4c
mov eax, dword [0x8cf144]
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 - 0xd34], ebx
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.007512b0
add esp, 0xc
lea eax, [ebp - 0xa18]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0xa18]
push 0x5c
push eax
call fcn.007505c4
add esp, 8
test eax, eax
je 0x41e8c9
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0xc58]
push 0xaa
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x41e8eb
mov edx, dword [edx]
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41e8f0
lea edi, [ebp - 0xa18]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41e906
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0xc58]
call fcn.00402680
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.007512b0
add esp, 0xc
lea eax, [ebp - 0xc70]
push 0xa9
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
jb 0x41e961
mov eax, dword [eax]
lea ecx, [ebp - 0xa18]
push ecx
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x8b5798
push str.test
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0xc70]
call fcn.00402680
mov esi, dword [ebx + 0x28]
mov ecx, ebx
call fcn.00417120
mov ecx, dword [ebx + 0x4c]
add esi, eax
mov dword [ebp - 0xd38], eax
mov dword [ebp - 0xd48], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x4c]
call edx
test eax, eax
jle 0x41f2d1
push 0
push 0
lea ecx, [ebp - 0xa30]
mov dword [ebp - 0xd1c], 0
mov dword [ebp - 0xd30], 0
mov dword [ebp - 0xd28], 0
mov dword [ebp - 0xd2c], 0
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 0
call fcn.00402760
mov dword [ebp - 4], 0
mov dword [ebp - 0xd44], 0
mov dword [ebp - 0xd40], 0
mov dword [ebp - 0xd3c], 0
mov eax, dword [ebx + 0x4c]
mov byte [ebp - 4], 1
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0xd50], eax
cmp esi, eax
je 0x41f2bb
mov edi, dword [esi + 0x18]
lea eax, [ebp - 0xc88]
push 0x36
push eax
mov dword [ebp - 0xd24], edi
mov dword [ebp - 0xd4c], edi
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x41ea75
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xb80]
call fcn.004026c0
mov eax, dword [edi]
lea ecx, [ebp - 0xb80]
push ecx
mov ecx, edi
mov byte [ebp - 4], 3
mov eax, dword [eax + 0x1c]
call eax
mov ebx, eax
lea ecx, [ebp - 0xb80]
mov dword [ebp - 0xd20], ebx
call fcn.00402680
lea ecx, [ebp - 0xc88]
mov byte [ebp - 4], 1
call fcn.00402680
lea eax, [ebp - 0xca0]
push 0x35
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 4
jb 0x41ead8
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa60]
call fcn.004026c0
mov eax, dword [edi]
lea ecx, [ebp - 0xa60]
push ecx
mov ecx, edi
mov byte [ebp - 4], 5
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xa60]
mov edi, eax
call fcn.00402680
lea ecx, [ebp - 0xca0]
mov byte [ebp - 4], 1
call fcn.00402680
test edi, edi
je 0x41eb89
lea eax, [ebp - 0xcb8]
push 0xd5
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
jb 0x41eb38
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x41eb40
mov edi, dword [edi]
mov cx, word [edi]
cmp cx, word [eax]
jne 0x41eb66
test cx, cx
je 0x41eb62
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x41eb66
add edi, 4
add eax, 4
test cx, cx
jne 0x41eb40
xor eax, eax
jmp 0x41eb6b
sbb eax, eax
or eax, 1
test eax, eax
lea ecx, [ebp - 0xcb8]
sete bl
call fcn.00402680
test bl, bl
jne 0x41f28d
mov ebx, dword [ebp - 0xd20]
xor eax, eax
mov dword [ebp - 0xa34], 7
mov dword [ebp - 0xa38], 0
mov word [ebp - 0xa48], ax
mov byte [ebp - 4], 6
test ebx, ebx
je 0x41ebc2
cmp dword [ebx + 0x14], 8
jb 0x41ebb6
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0xa48]
call fcn.004027d0
cmp dword [ebp - 0xd28], 0
mov dword [ebp - 0xd20], 1
je 0x41ec97
lea eax, [ebp - 0xc40]
mov dword [ebp - 0xd20], 0
push 0xd5
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 7
jb 0x41ec07
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa90]
call fcn.004026c0
lea eax, [ebp - 0xcd0]
mov byte [ebp - 4], 8
push 0x35
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 9
jb 0x41ec38
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa78]
call fcn.004026c0
mov ebx, dword [ebp - 0xd24]
lea ecx, [ebp - 0xa90]
push ecx
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0xa
push ecx
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 8]
call eax
lea ecx, [ebp - 0xa78]
call fcn.00402680
lea ecx, [ebp - 0xcd0]
call fcn.00402680
lea ecx, [ebp - 0xa90]
call fcn.00402680
lea ecx, [ebp - 0xc40]
mov byte [ebp - 4], 6
call fcn.00402680
jmp 0x41ec9d
mov ebx, dword [ebp - 0xd24]
mov ecx, str.test
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ecce
test dx, dx
je 0x41ecca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ecce
add eax, 4
add ecx, 4
test dx, dx
jne 0x41eca8
xor eax, eax
jmp 0x41ecd3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41ed91
lea eax, [ebp - 0xd00]
mov dword [ebp - 0xd20], 1
push 0xd4
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xb
jb 0x41ed09
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xac0]
call fcn.004026c0
lea eax, [ebp - 0xce8]
mov byte [ebp - 4], 0xc
push 0x35
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xd
jb 0x41ed3a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xaa8]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xac0]
push ecx
lea ecx, [ebp - 0xaa8]
mov byte [ebp - 4], 0xe
push ecx
mov eax, dword [eax + 8]
mov ecx, ebx
call eax
lea ecx, [ebp - 0xaa8]
call fcn.00402680
lea ecx, [ebp - 0xce8]
call fcn.00402680
lea ecx, [ebp - 0xac0]
call fcn.00402680
lea ecx, [ebp - 0xd00]
mov byte [ebp - 4], 6
call fcn.00402680
cmp dword [ebp - 0xd2c], 0
je 0x41ef78
mov eax, dword [ebp - 0xd30]
inc eax
mov dword [ebp - 0xd30], eax
cmp eax, dword [ebp - 0xd38]
jg 0x41ef78
cmp dword [ebp - 0xa20], 0
sete al
test al, al
je 0x41ee6a
mov eax, dword [ebp - 0xd40]
sub eax, dword [ebp - 0xd44]
sar eax, 2
test eax, eax
jle 0x41ee6a
dec eax
push eax
push 0
call fcn.0073be83
mov ecx, dword [ebp - 0xd44]
add esp, 8
mov edi, dword [ecx + eax*4]
lea eax, [ebp - 0xd18]
push 0x36
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xf
jb 0x41ee16
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xad8]
call fcn.004026c0
mov eax, dword [edi]
lea ecx, [ebp - 0xad8]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x10
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xad8]
mov edi, eax
call fcn.00402680
lea ecx, [ebp - 0xd18]
mov byte [ebp - 4], 6
call fcn.00402680
test edi, edi
je 0x41ee6a
cmp dword [edi + 0x14], 8
jb 0x41ee5e
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0xa30]
call fcn.004027d0
cmp dword [ebp - 0xa20], 0
sete al
test al, al
jne 0x41ef78
lea eax, [ebp - 0xb98]
push 0xee
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [ebp - 0xa1c], 8
lea ecx, [ebp - 0xa30]
lea edx, [ebp - 0xa48]
mov byte [ebp - 4], 0x11
cmovae ecx, dword [ebp - 0xa30]
cmp dword [ebp - 0xa34], 8
cmovae edx, dword [ebp - 0xa48]
cmp dword [eax + 0x14], 8
jb 0x41eec8
mov eax, dword [eax]
push ecx
push edx
push eax
push str._s_s___s
call fcn.00737eb0
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb98]
call fcn.00402680
cmp dword [ebp - 0xa1c], 8
lea eax, [ebp - 0xa30]
lea ecx, [ebp - 0xaf0]
cmovae eax, dword [ebp - 0xa30]
push eax
call fcn.004026c0
lea eax, [ebp - 0xbb0]
mov byte [ebp - 4], 0x12
push 0x38
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x13
jb 0x41ef2c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xb08]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xaf0]
push ecx
lea ecx, [ebp - 0xb08]
mov byte [ebp - 4], 0x14
push ecx
mov eax, dword [eax + 8]
mov ecx, ebx
call eax
lea ecx, [ebp - 0xb08]
call fcn.00402680
lea ecx, [ebp - 0xbb0]
call fcn.00402680
lea ecx, [ebp - 0xaf0]
mov byte [ebp - 4], 6
call fcn.00402680
push str.InstallShowMode
lea ecx, [ebp - 0xb68]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xb68]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0x15
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xb68]
mov dword [ebp - 0xd58], eax
mov byte [ebp - 4], 6
call fcn.00402680
lea eax, [ebp - 0xc28]
push 0xc3
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x16
jb 0x41efd5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xb50]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xb50]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0x17
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xb50]
call fcn.00402680
lea ecx, [ebp - 0xc28]
mov byte [ebp - 4], 6
call fcn.00402680
lea eax, [ebp - 0xbc8]
push 0x37
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x18
jb 0x41f030
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xb38]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xb38]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0x19
mov eax, dword [eax + 0x1c]
call eax
mov ebx, eax
lea ecx, [ebp - 0xb38]
mov dword [ebp - 0xd54], ebx
call fcn.00402680
lea ecx, [ebp - 0xbc8]
mov byte [ebp - 4], 6
call fcn.00402680
lea eax, [ebp - 0xbe0]
push 0x35
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x1a
jb 0x41f093
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xb20]
call fcn.004026c0
mov edi, dword [ebp - 0xd24]
lea ecx, [ebp - 0xb20]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x1b
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xb20]
mov edi, eax
call fcn.00402680
lea ecx, [ebp - 0xbe0]
mov byte [ebp - 4], 6
call fcn.00402680
test edi, edi
je 0x41f14a
lea eax, [ebp - 0xbf8]
push 0xd5
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
jb 0x41f0f9
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x41f101
mov edi, dword [edi]
mov cx, word [edi]
cmp cx, word [eax]
jne 0x41f127
test cx, cx
je 0x41f123
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x41f127
add edi, 4
add eax, 4
test cx, cx
jne 0x41f101
xor eax, eax
jmp 0x41f12c
sbb eax, eax
or eax, 1
test eax, eax
lea ecx, [ebp - 0xbf8]
sete bl
call fcn.00402680
test bl, bl
jne 0x41f27e
mov ebx, dword [ebp - 0xd54]
test ebx, ebx
je 0x41f1b9
lea eax, [ebp - 0xc10]
push 0xd4
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
jb 0x41f16e
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x41f176
mov ebx, dword [ebx]
mov cx, word [ebx]
cmp cx, word [eax]
jne 0x41f19c
test cx, cx
je 0x41f198
mov cx, word [ebx + 2]
cmp cx, word [eax + 2]
jne 0x41f19c
add ebx, 4
add eax, 4
test cx, cx
jne 0x41f176
xor eax, eax
jmp 0x41f1a1
sbb eax, eax
or eax, 1
test eax, eax
lea ecx, [ebp - 0xc10]
sete bl
call fcn.00402680
test bl, bl
jne 0x41f27e
mov ecx, dword [ebp - 0xd58]
test ecx, ecx
jne 0x41f1cb
mov ebx, dword [ebp - 0xd1c]
jmp 0x41f20d
cmp dword [ecx + 0x14], 8
jb 0x41f1d3
mov ecx, dword [ecx]
mov eax, str.show
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41f1fe
test dx, dx
je 0x41f1fa
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41f1fe
add ecx, 4
add eax, 4
test dx, dx
jne 0x41f1d8
xor eax, eax
jmp 0x41f203
sbb eax, eax
or eax, 1
mov ebx, dword [ebp - 0xd1c]
test eax, eax
jne 0x41f214
inc ebx
mov dword [ebp - 0xd1c], ebx
cmp dword [ebp - 0xd20], 0
je 0x41f22f
lea eax, [ebp - 0xd4c]
push eax
lea ecx, [ebp - 0xd44]
call fcn.00519470
mov ecx, dword [ebp - 0xd34]
mov edx, 1
mov eax, dword [ebp - 0xd28]
cmp ebx, dword [ecx + 0x28]
cmovge eax, edx
cmp dword [ebp - 0xd38], 0
mov dword [ebp - 0xd28], eax
jle 0x41f26e
cmp ebx, dword [ebp - 0xd48]
jge 0x41f26e
mov ecx, dword [ebp - 0xd2c]
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0xd2c], ecx
lea ecx, [ebp - 0xa48]
mov byte [ebp - 4], dl
call fcn.00402680
jmp 0x41f293
lea ecx, [ebp - 0xa48]
mov byte [ebp - 4], 1
call fcn.00402680
mov ebx, dword [ebp - 0xd1c]
mov ecx, dword [ebp - 0xd34]
add esi, 0x1c
mov eax, dword [ecx + 0x4c]
mov eax, dword [eax + 8]
mov dword [ebp - 0xd50], eax
cmp esi, eax
jne 0x41ea45
test ebx, ebx
je 0x41f2bb
mov dword [ecx + 0x20], 1
lea ecx, [ebp - 0xd44]
call fcn.00414000
lea ecx, [ebp - 0xa30]
call fcn.00402680
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.006e615c
mov esp, ebp
pop ebp
ret