Function at 0x40d2d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x436742
mov eax, dword fs:[0]
push eax
sub esp, 0x5bc
mov eax, dword [0x449250]
xor eax, esp
mov dword [esp + 0x5b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449250]
xor eax, esp
push eax
lea eax, [esp + 0x5d0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5e4]
mov ebp, dword [esp + 0x5e0]
lea edi, [esp + 0x13c]
mov dword [esp + 0x14], eax
call fcn.0040bd50
mov ebx, 0x105
mov dword [esp + 0x5d8], 0
mov ecx, ebx
lea esi, [esp + 0x144]
mov dword [esp + 0x25c], ebx
call fcn.0040c6d0
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x40d366
mov eax, dword [esp + 0x144]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add eax, 4
push eax
push 0
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x40d467
xor eax, eax
cmp dword [esp + 0x25c], eax
je 0x40d394
mov dword [esp + 0x25c], eax
mov ecx, 1
lea esi, [esp + 0x144]
mov dword [esp + 0x140], eax
call fcn.0040c6d0
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x40d3c4
mov eax, dword [esp + 0x144]
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, ebx
lea esi, [esp + 0x144]
mov dword [esp + 0x25c], ebx
call fcn.0040c6d0
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x40d3f7
mov eax, dword [esp + 0x144]
add eax, 4
push eax
push 1
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x40d467
lea eax, [esp + 0x13c]
call fcn.0040bf20
mov eax, ebp
call fcn.0040ba40
push 0x441c9c
push 0x441f54
mov edx, eax
call fcn.0040c340
add esp, 8
cmp byte [esp + 0x258], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x40d460
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x148]
cmp eax, edx
je 0x40d460
push eax
call fcn.004229f3
add esp, 4
xor al, al
jmp 0x40d6d7
lea edi, [esp + 0x13c]
call fcn.0040c180
cmp byte [esp + 0x258], 0
lea esi, [esp + 0x148]
jne 0x40d48b
mov esi, dword [esp + 0x144]
lea edi, [esp + 0x260]
call fcn.0040bd50
lea eax, [esi + 4]
mov edx, edi
call fcn.0040bf70
mov byte [esp + 0x5d8], 2
call fcn.0040c9f0
mov ebp, vtable.t_str.0
test al, al
je 0x40d659
cmp byte [esp + 0x37c], 0
lea eax, [esp + 0x26c]
jne 0x40d4d3
mov eax, dword [esp + 0x268]
add eax, 4
push 0x5c
push eax
call fcn.0042454b
add esp, 8
test eax, eax
jne 0x40d501
cmp byte [esp + 0x37c], al
lea eax, [esp + 0x26c]
jne 0x40d4fc
mov eax, dword [esp + 0x268]
add eax, 4
jmp 0x40d504
add eax, 2
push eax
lea edi, [esp + 0x388]
call fcn.0040be80
mov ecx, str.Application_Data
mov eax, edi
mov byte [esp + 0x5d8], 3
call fcn.0040c050
test al, al
je 0x40d62d
mov ebx, str.AppDataRoaming
xor eax, eax
cmp eax, ebx
jne 0x40d53d
mov ebx, 0x442128
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d542
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov ecx, edi
lea esi, [esp + 0x38c]
mov dword [esp + 0x388], eax
call fcn.0040c6d0
cmp byte [esp + 0x4a0], 0
lea eax, [esp + 0x390]
jne 0x40d581
mov eax, dword [esp + 0x38c]
lea ecx, [edi + edi]
push ecx
add eax, 4
push ebx
push eax
call fcn.00429cf0
add esp, 0xc
lea eax, [esp + 0x4a8]
call fcn.0040abc0
lea edx, [esp + 0x260]
push edx
lea ebx, [esp + 0x4ac]
mov byte [esp + 0x5dc], 4
call fcn.0040b7c0
cmp byte [esp + 0x4a0], 0
lea esi, [esp + 0x390]
jne 0x40d5d2
mov esi, dword [esp + 0x38c]
lea edi, [esp + 0x18]
call fcn.0040bd50
lea eax, [esi + 4]
mov edx, edi
call fcn.0040bf70
mov eax, edi
lea esi, [esp + 0x4a8]
call fcn.0040aef0
mov eax, edi
call fcn.0040ae60
cmp byte [esp + 0x5c4], 0
lea eax, [esp + 0x4b4]
jne 0x40d612
mov eax, dword [esp + 0x4b0]
add eax, 4
lea edx, [esp + 0x260]
call fcn.0040bf70
lea eax, [esp + 0x4a8]
call fcn.0040ae60
cmp byte [esp + 0x4a0], 0
mov dword [esp + 0x384], ebp
jne 0x40d659
mov eax, dword [esp + 0x38c]
lea ecx, [esp + 0x390]
cmp eax, ecx
je 0x40d659
push eax
call fcn.004229f3
add esp, 4
cmp byte [esp + 0x37c], 0
lea eax, [esp + 0x26c]
jne 0x40d671
mov eax, dword [esp + 0x268]
mov edx, dword [esp + 0x14]
add eax, 4
call fcn.0040bf70
cmp byte [esp + 0x37c], 0
mov dword [esp + 0x260], ebp
jne 0x40d6a9
mov eax, dword [esp + 0x268]
lea edx, [esp + 0x26c]
cmp eax, edx
je 0x40d6a9
push eax
call fcn.004229f3
add esp, 4
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], ebp
jne 0x40d6d5
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x40d6d5
push eax
call fcn.004229f3
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x5d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5b8]
xor ecx, esp
call fcn.004223b0
add esp, 0x5c8
ret