Function at 0x40dc00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2929
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4d1a14]
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]
xor eax, eax
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x48], 0
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.004101a0
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, 0x73
mov dword [ebp - 0x30], 0x150073
mov dword [ebp - 0x2c], 0x170018
xor ecx, ecx
mov dword [ebp - 0x28], 0x19
mov dword [ebp - 0x24], 0x170012
mov dword [ebp - 0x20], 0x12
mov dword [ebp - 0x1c], 0x5d0017
mov dword [ebp - 0x18], 0x10001a
mov dword [ebp - 0x14], 0x1c
nop dword [eax + eax]
cbw
xor word [ebp + ecx*2 - 0x2e], ax
inc ecx
cmp ecx, 0xe
jae 0x40dcd2
mov al, byte [ebp - 0x30]
jmp 0x40dcc0
xor eax, eax
mov dword [ebp - 0x4c], 7
lea ecx, [ebp - 0x2e]
mov dword [ebp - 0x60], eax
mov word [ebp - 0x12], ax
lea edx, [ecx + 2]
mov dword [ebp - 0x50], eax
mov word [ebp - 0x60], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dcf0
sub ecx, edx
lea eax, [ebp - 0x2e]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.004105b0
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 0x40dd20
sub ecx, edi
sar ecx, 1
push ecx
push edx
push 0
lea ecx, [ebp - 0x60]
call fcn.00411900
mov dword [esi], 0
xor ecx, ecx
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 0x40ddb7
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ddad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40def9
push ecx
push edx
call fcn.0047154d
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40ddc1
mov eax, dword [esi]
push 1
push 0x40
push 0x22
push eax
lea ecx, [ebp - 0x130]
call fcn.004096d0
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.00412920
push 0
push 0x423e
push section..data
lea ecx, [ebp - 0x120]
call fcn.00413820
lea ecx, [ebp - 0x120]
call fcn.00411210
lea ecx, [ebp - 0x118]
call fcn.00410740
test eax, eax
jne 0x40de9b
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 0x40defe
lea ecx, [ebp - 0x130]
call fcn.0040b5b0
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x40dedc
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ded2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df40
push ecx
push edx
call fcn.0047154d
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.004717ba
mov esp, ebp
pop ebp
ret
call fcn.0047cc5f
test cl, 4
je 0x40df0a
mov esi, str.ios_base::badbit_set
jmp 0x40df1a
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.00411b20
add esp, 8
lea ecx, [ebp - 0x5c]
push eax
push esi
call fcn.0040a900
push 0x4c4414
lea eax, [ebp - 0x5c]
push eax
call fcn.00472bf4
call fcn.0047cc5f
int3