Function at 0x42a5e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5336b4
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x57c54c]
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.00429b10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x128]
push 0x105
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.004074f0
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x42a682
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.00503920
lea eax, [ebp - 0x188]
mov dword [ebp - 0x1f0], 0x56039c
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.0040bae0
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.0040ba50
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.0040b250
mov byte [ebp - 4], 8
lea eax, [ebp - 0x128]
push ecx
push 2
push eax
lea ecx, [ebp - 0x1ec]
call fcn.0040b350
test eax, eax
lea ecx, [ebp - 0x1f0]
mov eax, dword [ebp - 0x1f0]
push 0
mov eax, dword [eax + 4]
jne 0x42a7cd
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
jmp 0x42a7dc
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.00403440
cmp dword [ebp - 0x12c], 0x10
lea edx, [ebp - 0x140]
push dword [ebp - 0x130]
cmovae edx, dword [ebp - 0x140]
lea ecx, [ebp - 0x1f0]
call fcn.00430140
add esp, 4
lea esi, [ebp - 0x1ec]
cmp dword [ebp - 0x1a0], 0
jne 0x42a81d
xor esi, esi
jmp 0x42a844
lea ecx, [ebp - 0x1ec]
call fcn.0040b190
push dword [ebp - 0x1a0]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.00506fce
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
push 2
push 0
lea ecx, [ebp - 0x1ec]
call fcn.0040b250
test esi, esi
jne 0x42a881
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.00403440
call fcn.004074f0
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x42a8a8
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.0042a940
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x12c]
cmp edx, 0x10
jb 0x42a902
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42a8f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a939
push edx
push ecx
call fcn.005010b4
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.00500b45
mov esp, ebp
pop ebp
ret
call fcn.00508868
int3