Function at 0x788be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x879849
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0xa5d1d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1bc], edi
push str.TMPDIR
mov dword [ebp - 4], 0
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 0x1ac], 0
call fcn.0081b84e
add esp, 4
lea ecx, [ebp - 0x30]
push eax
call fcn.00436220
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
push edi
call fcn.00786430
add esp, 8
mov ebx, 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1ac], ebx
call fcn.00436d10
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x7890b0
push 0x9be0d8
call fcn.0081b84e
add esp, 4
lea ecx, [ebp - 0x30]
push eax
call fcn.00436220
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00786430
add esp, 8
mov ecx, edi
push eax
call fcn.004cbba0
lea ecx, [ebp - 0xa0]
call fcn.00436d10
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00436d10
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x7890b0
push str.TEMP
call fcn.0081b84e
add esp, 4
lea ecx, [ebp - 0x30]
push eax
call fcn.00436220
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00786430
add esp, 8
mov ecx, edi
push eax
call fcn.004cbba0
lea ecx, [ebp - 0xa0]
call fcn.00436d10
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00436d10
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x7890b0
push 0x105
push edi
lea ecx, [ebp - 0x1b8]
call fcn.004d0af0
mov eax, dword [eax + 4]
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x1b8]
mov esi, eax
call fcn.004d1200
test esi, esi
jne 0x7890b0
xor al, al
test al, al
jne 0x788dc8
lea eax, [ebp - 0x30]
push 0x8a64f0
push eax
call fcn.00737280
add esp, 8
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 4
cmp dword [0xea47c8], 0
mov dword [ebp - 0x1ac], ebx
je 0x788daa
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea47c8]
je 0x788daa
call fcn.00742270
jmp 0x788daf
mov al, byte [0xa5c73c]
test al, al
je 0x788dc8
push esi
call fcn.00741d00
add esp, 4
mov byte [ebp - 0x1a1], 1
cmp eax, 6
jae 0x788dcf
mov byte [ebp - 0x1a1], 0
mov dword [ebp - 4], 0
test bl, 2
je 0x788e29
push dword [ebp - 0x18]
and ebx, 0xfffffffd
mov dword [ebp - 0x1ac], ebx
call fcn.008058ea
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x788e29
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x788e1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x78924a
push edx
push ecx
call fcn.007fff65
add esp, 8
cmp byte [ebp - 0x1a1], 0
je 0x7890b0
call fcn.00737b00
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 5
call fcn.00737b00
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 6
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.004d2a90
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub esp, 0x14
mov dword [ebp - 4], 7
mov esi, esp
mov dword [ebp - 0x1b4], esp
call sub.KERNEL32.dll_GetLastError
push eax
push esi
call fcn.007433a0
add esp, 8
xorps xmm0, xmm0
mov byte [ebp - 4], 8
mov dword [ebp - 0x80], 6
mov dword [ebp - 0x78], str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srccommon_filename.cpp
mov dword [ebp - 0x70], str.wxFileName::GetTempDir
mov dword [ebp - 0x74], 0x4d2
mov dword [ebp - 0x6c], 0x8a64f0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 9
call sub.KERNEL32.dll_GetLastError
push eax
push str.GetTempPath
push 0x4d2
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srccommon_filename.cpp
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x80]
call fcn.004d04c0
push dword [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.008058ea
mov edx, dword [ebp - 0x3c]
add esp, 4
cmp edx, 8
jb 0x788f66
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x788f5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x78924a
push edx
push ecx
call fcn.007fff65
add esp, 8
mov esi, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
test esi, esi
je 0x788fd0
push 0x4cc550
push dword [esi + 0x10]
mov byte [ebp - 4], 0xb
push dword [esi + 0x14]
call fcn.00760fc0
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call fcn.008058ea
push 0x4cc530
push dword [esi]
mov byte [ebp - 4], 0xc
push dword [esi + 4]
call fcn.00760fc0
push dword [esi]
mov dword [esi + 8], 0
call fcn.008058ea
push 0x20
push esi
call fcn.007fff65
add esp, 0x28
mov dword [ebp - 4], 0xd
call fcn.00737b00
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x789018
mov eax, 0xffff
add word [ecx + 8], ax
jne 0x789010
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x789010
cmp byte [esi + 0xa], 0
je 0x789005
push dword [esi]
call fcn.008058ea
add esp, 4
push 0xc
push esi
call fcn.007fff65
add esp, 8
call fcn.00737b00
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xe
call fcn.00737b00
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
je 0x789060
mov eax, 0xffff
add word [ecx + 8], ax
jne 0x789058
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x789058
cmp byte [esi + 0xa], 0
je 0x78904d
push dword [esi]
call fcn.008058ea
add esp, 4
push 0xc
push esi
call fcn.007fff65
add esp, 8
call fcn.00737b00
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xf
call fcn.00737b00
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
je 0x7890a5
mov eax, 0xffff
add word [ecx + 8], ax
jne 0x7890a0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x7890a0
cmp byte [esi + 0xa], 0
je 0x789095
push dword [esi]
call fcn.008058ea
add esp, 4
push 0xc
push esi
call fcn.007fff65
add esp, 8
call fcn.00737b00
mov byte [ebp - 4], 0
mov al, 1
jmp 0x788d66
cmp dword [edi + 0x10], 0
je 0x789220
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.007883e0
mov esi, dword [0x9b6a48]
add esp, 8
mov dword [ebp - 0x1b0], eax
cmp dword [eax + 0x14], 8
jb 0x7890e5
mov ecx, dword [eax]
mov dword [ebp - 0x1b0], ecx
mov ecx, dword [ebp - 0x1a8]
cmp dword [ecx + 0x14], 8
jb 0x7890f3
mov edi, dword [ecx]
cmp dword [ecx + 0x10], 0
mov ebx, dword [eax + 0x10]
je 0x7891be
push 0x100
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.00802480
mov eax, dword [ebp - 0x1b0]
add esp, 0xc
mov ecx, eax
mov dword [ebp - 0x1b4], 0x100
lea edx, [eax + ebx*2]
cmp eax, edx
je 0x78914e
nop
movzx eax, word [ecx]
cmp ax, word [ebp - 0x1b4]
jae 0x789181
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x1a0], 1
cmp ecx, edx
jne 0x789130
mov ecx, dword [ebp - 0x1a8]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x1b4]
dec eax
cmp eax, esi
cmovb esi, eax
lea esi, [edi + esi*2]
movzx eax, word [esi]
cmp ax, cx
jae 0x7891af
cmp byte [ebp + eax - 0x1a0], 0
je 0x7891af
cmp esi, edi
je 0x7891be
sub esi, 2
jmp 0x789166
mov ecx, dword [ebp - 0x1a8]
mov eax, dword [ecx + 0x10]
dec eax
cmp eax, esi
cmovb esi, eax
lea esi, [edi + esi*2]
mov eax, dword [ebp - 0x1b0]
mov ecx, ebx
test ebx, ebx
je 0x7891af
movzx edx, word [esi]
cmp word [eax], dx
je 0x7891b5
add eax, 2
sub ecx, 1
jne 0x7891a2
sub esi, edi
sar esi, 1
jmp 0x7891c1
cmp esi, edi
je 0x7891be
sub esi, 2
jmp 0x789193
or esi, 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00436d10
mov eax, dword [0x9b6a48]
cmp esi, eax
jne 0x78920c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.007883e0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x7891ee
mov eax, dword [eax]
movzx esi, word [eax]
lea ecx, [ebp - 0xa0]
call fcn.00436d10
mov edi, dword [ebp - 0x1a8]
mov ecx, edi
push esi
call fcn.00766240
jmp 0x78922c
mov edi, dword [ebp - 0x1a8]
mov ecx, edi
push eax
lea eax, [esi + 1]
push eax
call fcn.004d92a0
jmp 0x78922c
push 0x88ef14
mov ecx, edi
call fcn.00532260
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.008001d2
mov esp, ebp
pop ebp
ret
call fcn.00805899
int3