Function at 0x402450
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4274c7
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x4334ac]
xor eax, esp
mov dword [esp + 0x494], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4334ac]
xor eax, esp
push eax
lea eax, [esp + 0x4ac]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4bc]
lea edi, [esp + 0x13c]
mov dword [esp + 0x14], eax
mov ebx, ecx
call fcn.00408250
mov ebp, 0x105
mov dword [esp + 0x4b4], 0
mov ecx, ebp
lea esi, [esp + 0x144]
mov dword [esp + 0x25c], ebp
call fcn.00408ea0
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x4024e1
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 0x4025e2
xor eax, eax
cmp dword [esp + 0x25c], eax
je 0x40250f
mov dword [esp + 0x25c], eax
mov ecx, 1
lea esi, [esp + 0x144]
mov dword [esp + 0x140], eax
call fcn.00408ea0
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x40253f
mov eax, dword [esp + 0x144]
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, ebp
lea esi, [esp + 0x144]
mov dword [esp + 0x25c], ebp
call fcn.00408ea0
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x402572
mov eax, dword [esp + 0x144]
add eax, 4
push eax
push 1
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x4025e2
lea ecx, [esp + 0x13c]
call fcn.004084a0
mov ecx, ebx
call fcn.00404cf0
push 0x42b0dc
push 0x42b32c
mov edx, eax
call fcn.00408980
add esp, 8
cmp byte [esp + 0x258], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x4025db
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x148]
cmp eax, edx
je 0x4025db
push eax
call fcn.00415fb5
add esp, 4
xor al, al
jmp 0x402887
lea edi, [esp + 0x13c]
call fcn.00408820
cmp byte [esp + 0x258], 0
lea ebp, [esp + 0x148]
jne 0x402606
mov ebp, dword [esp + 0x144]
lea edi, [esp + 0x18]
call fcn.00408250
add ebp, 4
jne 0x402619
mov ebp, 0x42b9c8
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402620
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov ecx, edi
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00408ea0
cmp byte [esp + 0x134], 0
lea eax, [esp + 0x24]
jne 0x402653
mov eax, dword [esp + 0x20]
lea ecx, [edi + edi]
push ecx
add eax, 4
push ebp
push eax
call fcn.00419260
mov esi, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x18]
lea ebp, [esi + 0x254]
push edx
mov ecx, ebp
mov byte [esp + 0x4b8], 0
call fcn.00407460
cmp byte [esp + 0x134], 0
mov edi, vtable.t_str.0
mov dword [esp + 0x18], edi
jne 0x4026aa
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x4026aa
push eax
call fcn.00415fb5
add esp, 4
cmp byte [esi], 0
je 0x402859
cmp byte [ebp + 0x11c], 0
lea eax, [ebp + 0xc]
jne 0x4026c2
mov eax, dword [ebp + 8]
add eax, 4
push 0x5c
push eax
call fcn.00416e75
add esp, 8
test eax, eax
jne 0x4026e7
cmp byte [ebp + 0x11c], al
lea eax, [ebp + 0xc]
jne 0x4026e2
mov eax, dword [ebp + 8]
add eax, 4
jmp 0x4026ea
add eax, 2
push eax
lea edi, [esp + 0x264]
call fcn.004083c0
mov ecx, str.Application_Data
mov eax, edi
mov byte [esp + 0x4b4], 2
call fcn.004086a0
test al, al
je 0x402828
push str.AppDataRoaming
mov ecx, edi
call fcn.00408560
lea ecx, [esp + 0x384]
call fcn.00406cc0
lea edx, [esp + 0x384]
push edx
push ebp
mov byte [esp + 0x4bc], 3
call fcn.00407ff0
cmp byte [esp + 0x37c], 0
lea ebx, [esp + 0x26c]
jne 0x402759
mov ebx, dword [esp + 0x268]
lea edi, [esp + 0x18]
call fcn.00408250
add ebx, 4
jne 0x40276c
mov ebx, 0x42b9c8
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402771
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov ecx, edi
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00408ea0
cmp byte [esp + 0x134], 0
lea eax, [esp + 0x24]
jne 0x4027a4
mov eax, dword [esp + 0x20]
lea ecx, [edi + edi]
push ecx
add eax, 4
push ebx
push eax
call fcn.00419260
add esp, 0xc
lea eax, [esp + 0x18]
lea esi, [esp + 0x384]
call fcn.00407410
cmp byte [esp + 0x134], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x18], esi
jne 0x4027ed
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x4027ed
push eax
call fcn.00415fb5
add esp, 4
lea eax, [esp + 0x384]
push eax
mov ecx, ebp
call fcn.00407460
cmp byte [esp + 0x4a0], 0
mov dword [esp + 0x384], esi
jne 0x402828
mov eax, dword [esp + 0x38c]
lea ecx, [esp + 0x390]
cmp eax, ecx
je 0x402828
push eax
call fcn.00415fb5
add esp, 4
cmp byte [esp + 0x37c], 0
mov edi, vtable.t_str.0
mov dword [esp + 0x260], edi
jne 0x402859
mov eax, dword [esp + 0x268]
lea edx, [esp + 0x26c]
cmp eax, edx
je 0x402859
push eax
call fcn.00415fb5
add esp, 4
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], edi
jne 0x402885
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x402885
push eax
call fcn.00415fb5
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.00415c3e
add esp, 0x4a4
ret 4