Function at 0x425170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a5a4
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x1f4], 0
push eax
call fcn.004246a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x128]
push 0x105
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.00405960
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x425212
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x68746150
push ecx
push eax
mov dword [ebp - 0x18], 0x65707041
mov dword [ebp - 0x14], 0x41646e
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x2c], eax
push str.F9A3F1D972FCB4410A92336018FBFDFA.tmp
lea eax, [ebp - 0x128]
push eax
mov eax, dword [esi + 0x2c]
call eax
push 0xb0
lea eax, [ebp - 0x1f0]
push 0
push eax
call fcn.004fb730
lea eax, [ebp - 0x188]
mov dword [ebp - 0x1f0], 0x5571b4
add esp, 0xc
mov dword [ebp - 0x1f8], eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
mov byte [ebp - 4], 1
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1f0]
push 0
mov dword [ebp - 0x1f4], 1
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 - 0x1f0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1f4], eax
lea eax, [ebp - 0x1ec]
push eax
mov eax, dword [ebp - 0x1f0]
lea ecx, [ebp - 0x1f0]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00408820
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x1f0]
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 - 0x1f0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1f4], eax
lea eax, [ebp - 0x1ec]
mov ecx, eax
mov dword [ebp - 0x1f8], eax
call fcn.00408790
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1ec]
push 0
push 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.00407f70
mov byte [ebp - 4], 8
lea eax, [ebp - 0x128]
push ecx
push 2
push eax
lea ecx, [ebp - 0x1ec]
call fcn.00408070
test eax, eax
lea ecx, [ebp - 0x1f0]
mov eax, dword [ebp - 0x1f0]
push 0
mov eax, dword [eax + 4]
jne 0x42535d
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
jmp 0x42536c
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.00402bf0
cmp dword [ebp - 0x12c], 0x10
lea edx, [ebp - 0x140]
push dword [ebp - 0x130]
cmovae edx, dword [ebp - 0x140]
lea ecx, [ebp - 0x1f0]
call fcn.0042ad70
add esp, 4
lea esi, [ebp - 0x1ec]
cmp dword [ebp - 0x1a0], 0
jne 0x4253ad
xor esi, esi
jmp 0x4253d4
lea ecx, [ebp - 0x1ec]
call fcn.00407eb0
push dword [ebp - 0x1a0]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.004fedde
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
push 2
push 0
lea ecx, [ebp - 0x1ec]
call fcn.00407f70
test esi, esi
jne 0x425411
mov eax, dword [ebp - 0x1f0]
lea ecx, [ebp - 0x1f0]
push esi
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402bf0
call fcn.00405960
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x425438
movaps xmm0, xmmword [str.PathFileExistsA]
lea ecx, [ebp - 0x20]
push ecx
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x128]
push eax
mov eax, dword [esi + 0x18]
call eax
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f0]
call fcn.004254d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x12c]
cmp edx, 0x10
jb 0x425492
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x425488
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4254c9
push edx
push ecx
call fcn.004f8ec4
add esp, 8
mov dword [ebp - 0x130], 0
mov eax, esi
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
call fcn.00500017
int3