Function at 0x4193d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e093c
mov eax, dword fs:[0]
push eax
sub esp, 0x5bc
mov eax, dword [0x513200]
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.00403480
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0x105
mov dword [ebp - 0x14], 0x105
call fcn.004056f0
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 0x4194eb
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.004056f0
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.004056f0
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 0x4194eb
lea ecx, [ebp - 0x134]
call fcn.004036f0
push 0x4fc7f4
mov ecx, esi
call fcn.004058b0
xor bl, bl
jmp 0x4197ea
lea ecx, [ebp - 0x134]
call fcn.00403f40
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.0040e650
mov byte [ebp - 4], 1
cmp byte [0x52fb67], 0
jne 0x419570
push 0x114
lea eax, [ebp - 0x248]
mov byte [0x52fb67], 1
push 0
push eax
call fcn.0048bb90
add esp, 0xc
lea ecx, [ebp - 0x248]
xor edx, edx
call fcn.00416ed0
cmp dword [ebp - 0x244], 6
jb 0x419564
mov byte [0x52fb6a], 1
jmp 0x41957d
mov byte [0x52fb6a], 0
jmp 0x419752
cmp byte [0x52fb6a], 0
je 0x419752
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
push 0x5c
cmove eax, dword [ebp - 0x374]
add eax, 4
push eax
call fcn.0048c43d
add esp, 8
test eax, eax
jne 0x4195bc
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
cmove eax, dword [ebp - 0x374]
add eax, 4
jmp 0x4195bf
add eax, 2
push eax
lea ecx, [ebp - 0x258]
call fcn.00403600
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 0x419616
test dx, dx
je 0x419612
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419616
add eax, 4
add ecx, 4
test dx, dx
jne 0x4195f0
xor eax, eax
jmp 0x41961b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41972c
push 0x10
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x254], 0xf
call fcn.004056f0
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.0048b610
add esp, 0xc
lea ecx, [ebp - 0x4a0]
call fcn.0040e5f0
lea eax, [ebp - 0x4a0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x37c]
call fcn.00410b30
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.0040e650
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.0040ec90
cmp byte [ebp - 0x4a8], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4196e8
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5b8]
cmp eax, ecx
je 0x4196e8
push eax
call fcn.00496f41
add esp, 4
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x37c]
call fcn.0040ecf0
cmp byte [ebp - 0x384], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x419726
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x419726
push eax
call fcn.00496f41
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 0x419752
lea eax, [ebp - 0x24c]
cmp esi, eax
je 0x419752
push esi
call fcn.00496f41
add esp, 4
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
mov edi, 0x4fc444
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 0x419776
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.004056f0
cmp byte [esi + 0x11c], 0
je 0x4197a8
add esi, 0xc
jmp 0x4197ab
mov esi, dword [esi + 8]
lea eax, [ebx + ebx]
push eax
lea eax, [esi + 4]
push edi
push eax
call fcn.0048b610
add esp, 0xc
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
cmp byte [ebp - 0x260], 0
mov bl, 1
jne 0x4197ea
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x4197ea
push eax
call fcn.00496f41
add esp, 4
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x419813
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x419813
push ecx
call fcn.00496f41
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.00489940
mov esp, ebp
pop ebp
ret