Function at 0x4209b8
Capabilities:
Get common file path
Get program files directory
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1864]
mov eax, 0x1864
call fcn.004933d0
push 0xffffffffffffffff
push 0x4c70de
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x1860], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0xa28], ax
xor esi, esi
lea eax, [ebp + 0xa2a]
push esi
push eax
call fcn.00492200
add esp, 0xc
push esi
push 0x17
lea eax, [ebp + 0xa28]
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
test eax, eax
je 0x420a4e
push 0x4d8a80
push 0x4da540
lea eax, [ebp + 0xa28]
push eax
lea eax, [ebx + 0x14]
push str._s_s_s
push eax
call fcn.0040d022
add esp, 0x14
xor eax, eax
push edi
push eax
mov word [ebp + 0x618], ax
lea eax, [ebp + 0x61a]
push eax
call fcn.00492200
add esp, 0xc
push 0
push 2
lea eax, [ebp + 0x618]
push eax
push 0
call esi
test eax, eax
je 0x420a9d
push 0x4d8a80
push 0x4da540
lea eax, [ebp + 0x618]
push eax
lea eax, [ebx + 0x18]
push str._s_s_s
push eax
call fcn.0040d022
add esp, 0x14
xor eax, eax
push edi
push eax
mov word [ebp + 0x1450], ax
lea eax, [ebp + 0x1452]
push eax
call fcn.00492200
add esp, 0xc
push 0
push 0x16
lea eax, [ebp + 0x1450]
push eax
push 0
call esi
test eax, eax
je 0x420ada
lea ecx, [ebp + 0x1450]
lea eax, [ebx + 0x1c]
push ecx
push eax
call fcn.004085de
xor eax, eax
push edi
push eax
mov word [ebp + 0x1248], ax
lea eax, [ebp + 0x124a]
push eax
call fcn.00492200
add esp, 0xc
push 0
push 0xb
lea eax, [ebp + 0x1248]
push eax
push 0
call esi
test eax, eax
je 0x420b17
lea ecx, [ebp + 0x1248]
lea eax, [ebx + 0x20]
push ecx
push eax
call fcn.004085de
xor eax, eax
push edi
push eax
mov word [ebp + 0x1040], ax
lea eax, [ebp + 0x1042]
push eax
call fcn.00492200
add esp, 0xc
push 0
push 0x19
lea eax, [ebp + 0x1040]
push eax
push 0
call esi
test eax, eax
je 0x420b54
lea ecx, [ebp + 0x1040]
lea eax, [ebx + 0x24]
push ecx
push eax
call fcn.004085de
xor eax, eax
push edi
push eax
mov word [ebp + 0xc30], ax
lea eax, [ebp + 0xc32]
push eax
call fcn.00492200
add esp, 0xc
push 1
push 0x10
lea eax, [ebp + 0xc30]
push eax
push 0
call esi
test eax, eax
je 0x420b91
lea ecx, [ebp + 0xc30]
lea eax, [ebx + 0x28]
push ecx
push eax
call fcn.004085de
xor eax, eax
push edi
push eax
mov word [ebp + 0x820], ax
lea eax, [ebp + 0x822]
push eax
call fcn.00492200
add esp, 0xc
push 0
push 0x1a
lea eax, [ebp + 0x820]
push eax
push 0
call esi
test eax, eax
je 0x420bdb
push str.MicrosoftInternet_ExplorerQuick_Launch
lea eax, [ebp + 0x820]
push eax
lea eax, [ebx + 0x2c]
push 0x4d8598
push eax
call fcn.0040d022
add esp, 0x10
xor eax, eax
push edi
push eax
mov word [ebp + 0x410], ax
lea eax, [ebp + 0x412]
push eax
call fcn.00492200
add esp, 0xc
push 0
push 6
lea eax, [ebp + 0x410]
push eax
push 0
call esi
test eax, eax
je 0x420c18
lea ecx, [ebp + 0x410]
lea eax, [ebx + 0x30]
push ecx
push eax
call fcn.004085de
xor eax, eax
push edi
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00492200
add esp, 0xc
push 0
push 0x1a
lea eax, [ebp]
push eax
push 0
call esi
test eax, eax
je 0x420c51
lea eax, [ebp]
push eax
lea eax, [ebx + 0xc]
push 0x4d8558
push eax
call fcn.0040d022
add esp, 0xc
xor eax, eax
push edi
push eax
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push eax
call fcn.00492200
add esp, 0xc
push 0
push 0x26
lea eax, [ebp + 0x208]
push eax
push 0
call esi
test eax, eax
je 0x420c96
lea eax, [ebp + 0x208]
push eax
lea eax, [ebx + 0x10]
push 0x4d8558
push eax
call fcn.0040d022
add esp, 0xc
and dword [ebx + 0x1524], 0
mov ecx, 0x50f384
lea esi, [ebp - 0x10]
call fcn.004080cd
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
push edi
mov word [ebp + 0x1658], ax
lea eax, [ebp + 0x165a]
push esi
push eax
call fcn.00492200
add esp, 0xc
lea eax, [ebp + 0x1658]
push eax
mov dword [ebx + 0x53cc], esi
call fcn.00420511
test eax, eax
je 0x420e29
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1658]
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.00479c15
push dword [ebp - 0x18]
lea edi, [ebx + 0x34]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push str._d._d._d._d
push edi
call fcn.0040d022
add esp, 0x2c
inc esi
cmp dword [ebp - 0x14], 5
jl 0x420d35
mov dword [ebx + 0x14f8], esi
mov eax, dword [edi]
push str.6.0.0.1052
push eax
call fcn.00479cdd
pop ecx
pop ecx
test eax, eax
jge 0x420d71
mov edi, dword [edi]
push str.6.0.0.1001
push edi
mov dword [ebx + 0x1524], esi
call fcn.00479cdd
pop ecx
pop ecx
test eax, eax
jge 0x420d69
mov dword [ebx + 0x14fc], esi
jmp 0x420d80
mov dword [ebx + 0x1500], esi
jmp 0x420d80
xor ecx, ecx
test eax, eax
setne cl
inc ecx
inc ecx
mov dword [ebx + 0x1524], ecx
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp + 0x1658]
push eax
call edi
lea eax, [ebp + 0x1658]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x420d98
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 0x1656], 0x5c
jne 0x420dd2
lea eax, [ebp + 0x1658]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x420dba
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 + 0x1656], cx
cmp dword [ebx + 0x14fc], 0
mov esi, str.Safebox6.0
je 0x420e0f
lea eax, [ebp + 0x1658]
push eax
lea eax, [ebx + 0x58]
push 0x4d8558
push eax
call fcn.0040d022
add esp, 0xc
lea eax, [ebp + 0x1658]
push eax
call edi
push esi
lea eax, [ebp + 0x1658]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1658]
push eax
lea eax, [ebp - 0x10]
push 0x4d8558
push eax
call fcn.0040d022
add esp, 0xc
jmp 0x420e49
mov dword [ebx + 0x1524], esi
mov esi, str.Safebox6.0
push esi
push dword [ebx + 0x10]
lea eax, [ebp - 0x10]
push 0x4d8598
push eax
call fcn.0040d022
add esp, 0x10
call fcn.0042046c
lea edi, [ebx + 0x50]
lea eax, [ebp - 0x10]
call fcn.00405208
mov eax, edi
mov edi, 0x514680
call fcn.00405208
push esi
push dword [ebx + 0xc]
lea edi, [ebx + 0x48]
push 0x4d8598
push edi
call fcn.0040d022
push dword [edi]
call fcn.00479d8b
add esp, 0x14
push dword [ebx + 0x40]
xor esi, esi
inc esi
push esi
push str.NotJoinPrivate
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebx + 0x14c4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp + 0xe38], ax
lea eax, [ebp + 0xe3a]
push eax
call fcn.00492200
lea eax, [ebp + 0xe38]
push 0x103
push eax
call fcn.0047bb57
add esp, 0x14
cmp dword [ebx + 4], 5
jne 0x420ee5
push 0x36
pop eax
cmp ax, word [ebp + 0xe38]
jne 0x420ee5
mov dword [ebx + 0x1534], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408396
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x1860]
xor ecx, ebp
call fcn.0048c64c
add ebp, 0x1864
leave
ret