Function at 0x46fd80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4e8590
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
call fcn.0044a700
test eax, eax
je 0x470017
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
push ecx
mov ecx, eax
call edx
mov esi, eax
mov dword [esp + 0x28], esi
test esi, esi
je 0x470017
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
cmp eax, 4
jne 0x470017
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call edx
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
mov eax, dword [esp + 0x24]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fe19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x470017
mov edx, dword [0x5195ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5195ac
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], 0
mov edx, dword [esi]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call edx
mov byte [esp + 0x44], 1
mov eax, dword [eax]
push eax
push 0x4fc400
lea edi, [esp + 0x2c]
call fcn.00406e20
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call fcn.00406e40
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 + 0x44], 2
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x104
or eax, ecx
jge 0x46feb6
mov ecx, 0x104
lea eax, [esp + 0x20]
call fcn.00406d30
mov ebp, dword [esp + 0x20]
push 0
push 0
push ebp
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.004ca0b4
add esp, 8
test eax, eax
jl 0x4700f9
cmp eax, dword [ebp - 8]
jg 0x4700f9
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 ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x44], 3
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x105
or eax, ecx
jge 0x46ff2d
mov ecx, 0x105
lea eax, [esp + 0x18]
call fcn.00406d30
mov ebx, dword [esp + 0x18]
push ebx
call fcn.004482c0
mov esi, eax
mov eax, dword [ebx - 8]
add esp, 4
push eax
push ebx
call fcn.004ca0b4
add esp, 8
test eax, eax
jl 0x4700f9
cmp eax, dword [ebx - 8]
jg 0x4700f9
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
test esi, esi
je 0x46ff68
cmp dword [ebx - 0xc], ecx
jne 0x46ffb3
mov ecx, 0x105
lea esi, [esp + 0x18]
call fcn.00406d80
mov ecx, eax
call fcn.00448870
mov ebx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.004ca0b4
add esp, 8
test eax, eax
jl 0x4700f9
cmp eax, dword [ebx - 8]
jg 0x4700f9
xor edx, edx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], dx
test esi, esi
je 0x46fffc
cmp dword [ebx - 0xc], edx
je 0x46fffc
lea esi, [esp + 0x1c]
call fcn.00406e80
mov byte [esp + 0x44], 4
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x28]
push edx
call eax
mov edi, esi
mov byte [esp + 0x44], 5
call fcn.00405e00
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 4
call fcn.00406e40
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
jne 0x47002d
mov ecx, esi
call fcn.00406e40
lea ecx, [esp + 0x18]
call fcn.00406e40
lea ecx, [esp + 0x20]
call fcn.00406e40
lea ecx, [esp + 0x24]
call fcn.00406e40
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 0
push ecx
mov edx, esp
mov dword [esp + 0x30], esp
push edx
mov ecx, 0x4f05c4
call fcn.00406bd0
push ecx
add ebx, 0xfffffff0
mov byte [esp + 0x50], 6
mov eax, ebx
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.004065a0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x50], 7
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov esi, esp
call fcn.004065a0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [esp + 0x58], 8
mov eax, esp
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], esp
push ecx
push eax
mov ebx, str..lnk
call fcn.0040ab10
add esp, 4
lea eax, [ebp - 0x10]
mov byte [esp + 0x5c], 9
mov dword [esp + 0x50], esp
mov esi, esp
call fcn.004065a0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x5c], 4
call fcn.0046ebb0
add esp, 0x18
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00406e40
lea ecx, [esp + 0x18]
call fcn.00406e40
lea ecx, [esp + 0x20]
call fcn.00406e40
lea ecx, [esp + 0x24]
call fcn.00406e40
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 0x80070057
call fcn.00406e60
int3