Function at 0x408570
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c0c6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b0
mov eax, dword [0x5a800c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x280], esi
cmp dword [esi + 0x34], 0
jne 0x4088a2
lea ecx, [ebp - 0x278]
call fcn.00402410
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.004023c0
push eax
lea eax, [ebp - 0x278]
push 0x57d6d4
push eax
call fcn.00419340
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.00402410
mov byte [ebp - 4], 1
lea eax, [ebp - 0x248]
push 0x20c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x248]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x408654
xor eax, eax
lea ecx, [ebp - 0x248]
mov word [ebp - 0x3e], ax
call fcn.004028c0
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.00402610
push str.TempCrash
lea ecx, [ebp - 0x2c0]
call fcn.00404ba0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c0]
push eax
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x2a8]
call fcn.0041eea0
add esp, 4
lea ecx, [ebp - 0x2a8]
call fcn.00402400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c0]
call fcn.00402400
push esi
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x2a8]
call fcn.0041eea0
add esp, 4
lea ecx, [ebp - 0x2a8]
call fcn.00402400
lea ecx, [ebp - 0x260]
call fcn.0041b030
push 0x100
call fcn.00559a74
mov edi, eax
add esp, 4
mov dword [ebp - 0x27c], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x4086f3
xor eax, eax
mov word [edi], ax
mov word [edi + 0x80], ax
jmp 0x4086f5
xor edi, edi
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push str.fulldump
push 0x40
push edi
call esi
add esp, 0xc
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
push 0xa
push 0x10
push eax
mov eax, dword [ebp - 0x280]
movups xmmword [ebp - 0x24], xmm0
push dword [eax + 0x18]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x80]
push 0x40
push eax
call esi
add esp, 0x1c
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x28c], 1
push 0xc8
call fcn.0055953d
add esp, 4
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 4
push 0xc8
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x280]
add esp, 0xc
lea ecx, [ecx + 0x1c]
call fcn.004023c0
lea ecx, [ebp - 0x278]
mov esi, eax
call fcn.004023c0
mov edx, dword [ebp - 0x27c]
mov edi, eax
lea ecx, [edx + 0x10]
mov dword [edx + 0xc], 0
call fcn.00402410
lea ecx, [edx + 0x28]
call fcn.00402410
lea ecx, [edx + 0x40]
call fcn.00402410
push 0x18
mov dword [edx + 0xc0], 0
mov dword [edx + 0xc4], 0
call fcn.0055953d
add esp, 4
mov ecx, eax
mov edx, ecx
call fcn.00401f50
lea edx, [ecx + 4]
mov dword [eax], ecx
call fcn.00401f50
push esi
mov dword [eax], ecx
mov eax, dword [ebp - 0x27c]
mov dword [eax + 0xc0], ecx
lea ecx, [ebp - 0x290]
push ecx
sub esp, 8
lea ecx, [ebp - 0x260]
push edi
sub esp, 0x14
push ecx
mov ecx, eax
call fcn.0043f995
mov byte [ebp - 4], 1
push dword [ebp - 0x280]
mov dword [ebp - 0x288], 0
push dword [ebp - 0x27c]
mov dword [ebp - 0x284], 0
lea ecx, [ebp - 0x288]
call fcn.00408940
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x288]
mov eax, dword [edx + 0x34]
mov dword [edx + 0x34], ecx
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 0x288], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x284], eax
mov dword [edx + 0x38], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x288]
call fcn.00404a40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.00402400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.00402400
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055929f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret