Function at 0x409720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59040d
mov eax, dword fs:[0]
push eax
sub esp, 0xadc
mov eax, dword [0x5f4e24]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x224]
mov ecx, 0x201
lea esi, [ebp + 8]
lea edi, [ebp - 0xa2c]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 0xa30], 0
call fcn.00565b20
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0x104
push 0
push eax
call fcn.00565b20
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x224]
add esp, 0xc
push eax
push 0x104
call esi
lea eax, [ebp - 0x11c]
push eax
push 0x104
call esi
lea ecx, [ebp - 0x224]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4097c0
mov eax, dword [str.getwindows.exe]
mov dword [ecx], eax
mov eax, dword [0x5d4c60]
mov dword [ecx + 4], eax
mov eax, dword [0x5d4c64]
mov dword [ecx + 8], eax
mov ax, word [0x5d4c68]
mov word [ecx + 0xc], ax
mov al, byte [0x5d4c6a]
mov byte [ecx + 0xe], al
lea ecx, [ebp - 0x11c]
dec ecx
nop word [eax + eax]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x409800
mov eax, dword [0x5d4d08]
mov dword [ecx], eax
mov eax, dword [0x5d4d0c]
mov dword [ecx + 4], eax
mov eax, dword [0x5d4d10]
mov dword [ecx + 8], eax
mov eax, dword [0x5d4d14]
mov dword [ecx + 0xc], eax
mov ax, word [0x5d4d18]
mov word [ecx + 0x10], ax
mov dword [ebp - 0xae4], 0x5d4fb0
mov dword [ebp - 0xa74], 0
mov dword [ebp - 0xa54], 0
mov dword [ebp - 0xa50], 0
mov dword [ebp - 0xa4c], 0
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0xae0]
push eax
lea ecx, [ebp - 0xa7c]
mov dword [ebp - 0xa30], 1
mov dword [ebp - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0xa80], 0x60
call fcn.00406450
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xae4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xae4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xae8], eax
lea ecx, [ebp - 0xae0]
call fcn.004061f0
push ecx
push 2
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0xae0]
call fcn.004060b0
test eax, eax
lea ecx, [ebp - 0xae4]
mov eax, dword [ebp - 0xae4]
je 0x409912
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x409927
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.00408230
lea edx, [ebp - 0xa28]
lea ecx, [ebp - 0xae4]
call fcn.0040bf70
lea ecx, [ebp - 0xae4]
call fcn.00406e00
lea ecx, [ebp - 0xae0]
call fcn.00405fb0
test eax, eax
jne 0x409983
mov eax, dword [ebp - 0xae4]
lea ecx, [ebp - 0xae4]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00408230
lea eax, [ebp - 0x224]
push eax
call fcn.0056a749
mov eax, dword [ebp - 0xae4]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xae4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xae8], eax
lea ecx, [ebp - 0xae0]
call fcn.004055d0
mov eax, dword [ebp - 0xae4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xae4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xae8], eax
lea eax, [ebp - 0xa7c]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00417994
add esp, 4
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.005638db
mov esp, ebp
pop ebp
ret