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

Disassembly:
push 0xffffffffffffffff
push 0x4e86b9
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov esi, ecx
push esi
call fcn.0046f230
add esp, 4
test eax, eax
je 0x46f383
push esi
lea edi, [esp + 0x18]
call fcn.0046f0a0
add esp, 4
mov dword [esp + 0x258], 0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x46f3ad
mov dword [esp + 0x258], 0xffffffff
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004c961b
add esp, 0x248
ret
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, 0x4fa550
call fcn.0040ab10
add esp, 8
mov byte [esp + 0x258], 1
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5195ac
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x258], 2
mov eax, dword [edi - 8]
mov ebp, dword [esp + 0x18]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x46f414
mov ecx, 0x104
lea eax, [esp + 0x1c]
call fcn.00406d30
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebp
push 0x104
push edi
push 0x4f05c4
push str.smicon
push 0x4f65c0
call ebx
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004ca0b4
add esp, 8
test eax, eax
jl 0x46f7f2
cmp eax, dword [edi - 8]
jg 0x46f7f2
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [edi - 0xc], ecx
jne 0x46f4be
lea eax, [edi - 0x10]
mov byte [esp + 0x258], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f482
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x258], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f4aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x258], 0xffffffff
mov eax, dword [esp + 0x14]
jmp 0x46f367
mov edx, dword [0x5195ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5195ac
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov byte [esp + 0x258], 3
mov eax, dword [ebp - 8]
mov edi, dword [esp + 0x18]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x104
or eax, ecx
jge 0x46f507
mov ecx, 0x104
lea eax, [esp + 0x20]
call fcn.00406d30
mov ebp, dword [esp + 0x20]
push edi
push 0x104
push ebp
push 0x4f05c4
push 0x4f6b08
push str.info
call ebx
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.004ca0b4
add esp, 8
test eax, eax
jl 0x46f7f2
cmp eax, dword [ebp - 8]
jg 0x46f7f2
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov word [ebp + eax*2], cx
mov edx, dword [0x5195ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5195ac
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x258], 4
mov ecx, dword [esp + 0x14]
push ecx
push esi
push 0x4fc3cc
lea edi, [esp + 0x34]
call fcn.00406e20
mov edx, dword [0x5195ac]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5195ac
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov byte [esp + 0x258], 5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x46f5c2
mov ecx, 0x104
lea eax, [esp + 0x24]
call fcn.00406d30
mov esi, dword [esp + 0x24]
push 0
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ca0b4
add esp, 8
test eax, eax
jl 0x46f7f2
cmp eax, dword [esi - 8]
jg 0x46f7f2
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x4c]
mov dword [esi - 0xc], eax
push edx
mov word [esi + eax*2], cx
call fcn.004cc620
mov ecx, dword [0x5195cc]
add esp, 0xc
push 0x104
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
mov ebx, 0x4f66b8
call fcn.0040ab10
add esp, 4
mov byte [esp + 0x260], 6
mov ecx, esp
lea edx, [esp + 0x24]
mov dword [esp + 0x48], esp
push edx
push ecx
mov ebx, eax
call fcn.0041a030
add esp, 4
mov byte [esp + 0x264], 7
mov eax, esp
mov dword [esp + 0x44], esp
push eax
lea ecx, [esp + 0x54]
call fcn.00406bd0
mov byte [esp + 0x264], 8
mov edi, dword [esp + 0x34]
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x40], esp
mov ebx, esp
call fcn.004065a0
add eax, 0x10
mov dword [ebx], eax
push ecx
mov byte [esp + 0x26c], 9
mov ecx, esp
lea edx, [esp + 0x34]
mov dword [esp + 0x48], esp
push edx
push ecx
mov ebx, str..lnk
call fcn.0040ab10
add esp, 4
add esi, 0xfffffff0
mov eax, esi
mov byte [esp + 0x270], 0xa
mov dword [esp + 0x54], esp
mov ebx, esp
call fcn.004065a0
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x270], 6
call fcn.0046ebb0
mov ebx, eax
mov byte [esp + 0x270], 5
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f70a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x258], 4
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f72b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x258], 3
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46f74c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x258], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f770
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x258], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f798
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x258], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f7c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x258], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f7eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x46f385
push 0x80070057
call fcn.00406e60
int3