Function at 0x40fd00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2ac9
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x68], esi
xor eax, eax
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
push eax
push 0x104
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 1
call fcn.00412590
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov al, 0x68
mov dword [ebp - 0x30], 0xe0068
mov dword [ebp - 0x2c], 0xc0003
xor ecx, ecx
mov dword [ebp - 0x28], 0x1b0002
mov dword [ebp - 0x24], 0xc0009
mov dword [ebp - 0x20], 0x1b0009
mov dword [ebp - 0x1c], 0x46000c
mov dword [ebp - 0x18], 0xb0001
mov dword [ebp - 0x14], 7
nop dword [eax + eax]
cbw
xor word [ebp + ecx*2 - 0x2e], ax
inc ecx
cmp ecx, 0xe
jae 0x40fdd2
mov al, byte [ebp - 0x30]
jmp 0x40fdc0
xor eax, eax
lea ecx, [ebp - 0x2e]
xorps xmm0, xmm0
mov word [ebp - 0x12], ax
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x4c], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fdf0
sub ecx, edx
lea eax, [ebp - 0x2e]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0040a620
cmp dword [ebp - 0x34], 8
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 2
cmovae edx, dword [ebp - 0x48]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fe20
sub ecx, edi
sar ecx, 1
push ecx
push edx
push 0
lea ecx, [ebp - 0x60]
call fcn.00413ab0
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x64], 3
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x40feb7
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fead
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fff9
push ecx
push edx
call fcn.0047155d
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40fec1
mov eax, dword [esi]
push 1
push 0x40
push 0x22
push eax
lea ecx, [ebp - 0x130]
call fcn.0040b7d0
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x134], eax
sub esp, 0x18
mov byte [ebp - 4], 3
mov eax, esp
lea ecx, [ebp - 0x120]
xorps xmm0, xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
movq qword [eax + 0x10], xmm0
call fcn.00414a80
push 0
push 0x423e
push 0x4cd008
lea ecx, [ebp - 0x120]
call fcn.004159a0
lea ecx, [ebp - 0x120]
call fcn.004133c0
lea ecx, [ebp - 0x118]
call fcn.00412930
test eax, eax
jne 0x40ff9b
mov eax, dword [ebp - 0x130]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [ebp + ecx - 0xf8], edx
cmovne eax, edx
or eax, dword [ebp + ecx - 0x124]
and eax, 0x15
or eax, 2
mov dword [ebp + ecx - 0x124], eax
mov ecx, dword [ebp + ecx - 0x120]
and ecx, eax
jne 0x40fffe
lea ecx, [ebp - 0x130]
call fcn.0040d620
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x40ffdc
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ffd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410040
push ecx
push edx
call fcn.0047155d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004717ca
mov esp, ebp
pop ebp
ret
call fcn.0047cebf
test cl, 4
je 0x41000a
mov esi, str.ios_base::badbit_set
jmp 0x41001a
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.00413cd0
add esp, 8
lea ecx, [ebp - 0x5c]
push eax
push esi
call fcn.0040ca20
push 0x4c3a98
lea eax, [ebp - 0x5c]
push eax
call fcn.00472ba4
call fcn.0047cebf
int3