Function at 0x41afb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e65ac
mov eax, dword fs:[0]
push eax
sub esp, 0x5bc
mov eax, dword [0x519220]
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, edx
mov dword [ebp - 0x5c8], ebx
mov esi, ecx
lea ecx, [ebp - 0x134]
call fcn.00403e10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0x105
mov dword [ebp - 0x14], 0x105
call fcn.00406110
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push 0
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x41b0cb
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00406110
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0x105
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0x105
call fcn.00406110
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push 1
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x41b0cb
lea ecx, [ebp - 0x134]
call fcn.00404080
push 0x502904
mov ecx, esi
call fcn.004062d0
xor bl, bl
jmp 0x41b3ca
lea ecx, [ebp - 0x134]
call fcn.004048d0
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x37c]
cmove eax, dword [ebp - 0x12c]
sub esp, 0x10
add eax, 4
push 0
push eax
call fcn.0040f6f0
mov byte [ebp - 4], 1
cmp byte [0x53606f], 0
jne 0x41b150
push 0x114
lea eax, [ebp - 0x248]
mov byte [0x53606f], 1
push 0
push eax
call fcn.00491400
add esp, 0xc
lea ecx, [ebp - 0x248]
xor edx, edx
call fcn.004186b0
cmp dword [ebp - 0x244], 6
jb 0x41b144
mov byte [0x53605a], 1
jmp 0x41b15d
mov byte [0x53605a], 0
jmp 0x41b332
cmp byte [0x53605a], 0
je 0x41b332
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
push 0x5c
cmove eax, dword [ebp - 0x374]
add eax, 4
push eax
call fcn.00491cad
add esp, 8
test eax, eax
jne 0x41b19c
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
cmove eax, dword [ebp - 0x374]
add eax, 4
jmp 0x41b19f
add eax, 2
push eax
lea ecx, [ebp - 0x258]
call fcn.00403f90
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24c]
cmp byte [ebp - 0x13c], 0
mov ecx, str.Application_Data
mov esi, dword [ebp - 0x250]
cmove eax, esi
add eax, 4
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b1f6
test dx, dx
je 0x41b1f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b1f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b1d0
xor eax, eax
jmp 0x41b1fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41b30c
push 0x10
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x254], 0xf
call fcn.00406110
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
push 0x20
cmove eax, dword [ebp - 0x250]
add eax, 4
push str.AppDataRoaming
push eax
call fcn.00490e80
add esp, 0xc
lea ecx, [ebp - 0x4a0]
call fcn.0040f690
lea eax, [ebp - 0x4a0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x37c]
call fcn.00411bd0
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x5c4]
cmove eax, dword [ebp - 0x250]
sub esp, 0x10
add eax, 4
push 0
push eax
call fcn.0040f6f0
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.0040fd30
cmp byte [ebp - 0x4a8], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x41b2c8
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5b8]
cmp eax, ecx
je 0x41b2c8
push eax
call fcn.0049c7b1
add esp, 4
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x37c]
call fcn.0040fd90
cmp byte [ebp - 0x384], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x41b306
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x41b306
push eax
call fcn.0049c7b1
add esp, 4
mov esi, dword [ebp - 0x250]
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x41b332
lea eax, [ebp - 0x24c]
cmp esi, eax
je 0x41b332
push esi
call fcn.0049c7b1
add esp, 4
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
mov edi, 0x502554
cmove eax, dword [ebp - 0x374]
add eax, 4
cmovne edi, eax
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b356
mov esi, dword [ebp - 0x5c8]
sub ecx, edx
sar ecx, 1
mov dword [ebx + 4], ecx
lea ebx, [ecx + 1]
push ebx
lea ecx, [esi + 8]
call fcn.00406110
cmp byte [esi + 0x11c], 0
je 0x41b388
add esi, 0xc
jmp 0x41b38b
mov esi, dword [esi + 8]
lea eax, [ebx + ebx]
push eax
lea eax, [esi + 4]
push edi
push eax
call fcn.00490e80
add esp, 0xc
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
cmp byte [ebp - 0x260], 0
mov bl, 1
jne 0x41b3ca
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x41b3ca
push eax
call fcn.0049c7b1
add esp, 4
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x41b3f3
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x41b3f3
push ecx
call fcn.0049c7b1
add esp, 4
mov al, bl
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.0048f1b0
mov esp, ebp
pop ebp
ret