Function at 0x40b710
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x497527
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x494], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x4ac]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4bc]
mov ebx, ecx
lea ecx, [esp + 0x13c]
mov dword [esp + 0x14], eax
call fcn.00410770
xor ebp, ebp
mov ecx, 0x105
mov dword [esp + 0x4b4], ebp
lea esi, [esp + 0x144]
mov dword [esp + 0x25c], ecx
call fcn.00411640
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x40b79d
mov eax, dword [esp + 0x144]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add eax, 4
push eax
push ebp
push ebp
push 0x1a
push ebp
call edi
test eax, eax
je 0x40b89c
cmp dword [esp + 0x25c], ebp
je 0x40b7c6
mov dword [esp + 0x25c], ebp
mov ecx, 1
lea esi, [esp + 0x144]
mov dword [esp + 0x140], ebp
call fcn.00411640
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x40b7f6
mov eax, dword [esp + 0x144]
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, 0x105
lea esi, [esp + 0x144]
mov dword [esp + 0x25c], ecx
call fcn.00411640
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x40b82c
mov eax, dword [esp + 0x144]
add eax, 4
push eax
push 1
push ebp
push 0x1a
push ebp
call edi
test eax, eax
je 0x40b89c
lea eax, [esp + 0x13c]
call fcn.00410910
mov eax, dword [esp + 0x14]
call fcn.0040f780
push 0x4b8db4
push 0x4b8ff4
mov edx, eax
call fcn.00410f90
add esp, 8
cmp byte [esp + 0x258], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x40b895
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x148]
cmp eax, edx
je 0x40b895
push eax
call fcn.00475125
add esp, 4
xor al, al
jmp 0x40bb04
lea edi, [esp + 0x13c]
call fcn.00410bc0
cmp byte [esp + 0x258], 0
lea esi, [esp + 0x148]
jne 0x40b8c0
mov esi, dword [esp + 0x144]
lea ecx, [esp + 0x260]
call fcn.00410770
lea eax, [esi + 4]
lea edx, [esp + 0x260]
call fcn.00410960
mov byte [esp + 0x4b4], 0
cmp byte [esp + 0x37c], 0
lea eax, [esp + 0x26c]
jne 0x40b8fb
mov eax, dword [esp + 0x268]
lea ebp, [ebx + 0x254]
add eax, 4
mov edx, ebp
call fcn.00410960
cmp byte [esp + 0x37c], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x260], esi
jne 0x40b93c
mov eax, dword [esp + 0x268]
lea ecx, [esp + 0x26c]
cmp eax, ecx
je 0x40b93c
push eax
call fcn.00475125
add esp, 4
cmp byte [ebx], 0
je 0x40bad6
cmp byte [ebp + 0x11c], 0
lea eax, [ebp + 0xc]
jne 0x40b954
mov eax, dword [ebp + 8]
add eax, 4
push 0x5c
push eax
call fcn.004763f9
add esp, 8
test eax, eax
jne 0x40b979
cmp byte [ebp + 0x11c], al
lea eax, [ebp + 0xc]
jne 0x40b974
mov eax, dword [ebp + 8]
add eax, 4
jmp 0x40b97c
add eax, 2
push eax
lea edi, [esp + 0x264]
call fcn.004108a0
mov ecx, str.Application_Data
mov eax, edi
mov byte [esp + 0x4b4], 2
call fcn.00410a40
test al, al
je 0x40baaa
mov ebx, str.AppDataRoaming
xor edx, edx
cmp edx, ebx
jne 0x40b9b5
mov ebx, 0x4b75b8
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b9c0
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov ecx, edi
lea esi, [esp + 0x268]
mov dword [esp + 0x264], eax
call fcn.00411640
cmp byte [esp + 0x37c], 0
lea eax, [esp + 0x26c]
jne 0x40b9ff
mov eax, dword [esp + 0x268]
lea ecx, [edi + edi]
push ecx
add eax, 4
push ebx
push eax
call fcn.004797f0
add esp, 0xc
lea ecx, [esp + 0x384]
call fcn.0040df10
push ebp
lea ebx, [esp + 0x388]
mov byte [esp + 0x4b8], 3
call fcn.0040edb0
cmp byte [esp + 0x37c], 0
lea esi, [esp + 0x26c]
jne 0x40ba49
mov esi, dword [esp + 0x268]
lea ecx, [esp + 0x18]
call fcn.00410770
lea eax, [esi + 4]
lea edx, [esp + 0x18]
call fcn.00410960
lea eax, [esp + 0x18]
lea esi, [esp + 0x384]
call fcn.0040e300
lea ecx, [esp + 0x18]
call fcn.0040e2d0
cmp byte [esp + 0x4a0], 0
lea eax, [esp + 0x390]
jne 0x40ba8f
mov eax, dword [esp + 0x38c]
add eax, 4
mov edx, ebp
call fcn.00410960
lea ecx, [esp + 0x384]
call fcn.0040e2d0
mov esi, vtable.t_str.0
cmp byte [esp + 0x37c], 0
mov dword [esp + 0x260], esi
jne 0x40bad6
mov eax, dword [esp + 0x268]
lea edx, [esp + 0x26c]
cmp eax, edx
je 0x40bad6
push eax
call fcn.00475125
add esp, 4
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], esi
jne 0x40bb02
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x40bb02
push eax
call fcn.00475125
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.00474db0
add esp, 0x4a4
ret 4