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

Disassembly:
push 0xffffffffffffffff
push 0x4e8618
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
push esi
call fcn.0046f230
add esp, 4
test eax, eax
je 0x46f879
push esi
lea edi, [esp + 0x24]
call fcn.0046f0a0
add esp, 4
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jne 0x46f88f
mov dword [esp + 0x58], 0xffffffff
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f879
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, 0x4fa550
call fcn.0040ab10
add esp, 8
mov ebx, 1
mov byte [esp + 0x58], bl
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5195ac
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov byte [esp + 0x58], 2
mov eax, dword [esi - 8]
mov edi, dword [esp + 0x1c]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x46f8f1
mov ecx, 0x104
lea eax, [esp + 0x24]
call fcn.00406d30
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x104
push esi
push 0x4f05c4
push str.exec
push str.info
call edi
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ca0b4
add esp, 8
test eax, eax
jl 0x46fd6b
cmp eax, dword [esi - 8]
jg 0x46fd6b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
jne 0x46f991
lea eax, [esi - 0x10]
mov byte [esp + 0x58], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f95b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 0
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 0x46f980
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x20]
jmp 0x46f85d
mov edx, dword [0x5195ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5195ac
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], ebp
mov byte [esp + 0x58], 3
mov eax, dword [ebp - 8]
mov esi, dword [esp + 0x1c]
mov ecx, ebx
sub ecx, dword [ebp - 4]
sub eax, 0x104
or eax, ecx
jge 0x46f9d4
mov ecx, 0x104
lea eax, [esp + 0x28]
call fcn.00406d30
mov ebp, dword [esp + 0x28]
push esi
push 0x104
push ebp
push 0x4f05c4
push 0x4f6b08
push str.info
call edi
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.004ca0b4
add esp, 8
test eax, eax
jl 0x46fd6b
cmp eax, dword [ebp - 8]
jg 0x46fd6b
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
lea edx, [eax + 0x10]
mov dword [esp + 0x18], edx
mov byte [esp + 0x58], 4
mov eax, dword [edx - 8]
mov esi, dword [esp + 0x1c]
mov ecx, ebx
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x46fa57
mov ecx, 0x104
lea eax, [esp + 0x18]
call fcn.00406d30
mov edx, dword [esp + 0x18]
push esi
push 0x104
push edx
push 0x4f05c4
push str.params
push str.info
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ca0b4
add esp, 8
test eax, eax
jl 0x46fd6b
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x46fd6b
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x18]
xor ecx, ecx
lea ebx, [esp + 0x18]
mov word [edx + eax*2], cx
call fcn.00406430
mov ebx, eax
call fcn.00406340
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5195ac
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
mov byte [esp + 0x58], 5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x46faf3
mov ecx, 0x104
lea eax, [esp + 0x2c]
call fcn.00406d30
mov esi, dword [esp + 0x2c]
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 0x46fd6b
cmp eax, dword [esi - 8]
jg 0x46fd6b
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [0x5195ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5195ac
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ebx, 0x4f66b8
mov byte [esp + 0x60], 6
call fcn.0040ab10
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
mov ebx, eax
mov byte [esp + 0x68], 7
call fcn.0041a030
add esp, 0x10
lea edi, [esp + 0x30]
mov byte [esp + 0x58], 8
call fcn.00405e00
mov byte [esp + 0x58], 7
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 6
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fbc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push ecx
mov ecx, 0x4f05c4
call fcn.00406bd0
mov byte [esp + 0x60], 9
mov edi, dword [esp + 0x38]
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x4c], esp
mov ebx, esp
call fcn.004065a0
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x64], 0xa
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x54], esp
mov ebx, esp
call fcn.004065a0
add eax, 0x10
mov dword [ebx], eax
push ecx
mov byte [esp + 0x6c], 0xb
mov edx, esp
lea eax, [esp + 0x3c]
mov dword [esp + 0x5c], esp
push eax
push edx
mov ebx, str..lnk
call fcn.0040ab10
add esp, 4
add esi, 0xfffffff0
mov eax, esi
mov byte [esp + 0x70], 0xc
mov dword [esp + 0x64], esp
mov ebx, esp
call fcn.004065a0
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x70], 6
call fcn.0046ebb0
add esp, 0x18
mov ebx, eax
mov byte [esp + 0x58], 5
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fc7e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x58], 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46fc9c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x58], 3
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 0x46fcc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x58], 2
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fce3
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fd08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 0
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 0x46fd2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fd55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
push 0x80070057
call fcn.00406e60
int3