Function at 0x788d50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x879a69
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0xa5e224]
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.0081b9ee
add esp, 4
lea ecx, [ebp - 0x30]
push eax
call fcn.00436310
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
push edi
call fcn.007865a0
add esp, 8
mov ebx, 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1ac], ebx
call fcn.00436e00
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x789220
push 0x9bf158
call fcn.0081b9ee
add esp, 4
lea ecx, [ebp - 0x30]
push eax
call fcn.00436310
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.007865a0
add esp, 8
mov ecx, edi
push eax
call fcn.004cbce0
lea ecx, [ebp - 0xa0]
call fcn.00436e00
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00436e00
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x789220
push str.TEMP
call fcn.0081b9ee
add esp, 4
lea ecx, [ebp - 0x30]
push eax
call fcn.00436310
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.007865a0
add esp, 8
mov ecx, edi
push eax
call fcn.004cbce0
lea ecx, [ebp - 0xa0]
call fcn.00436e00
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00436e00
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x789220
push 0x105
push edi
lea ecx, [ebp - 0x1b8]
call fcn.004d0c30
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.004d1340
test esi, esi
jne 0x789220
xor al, al
test al, al
jne 0x788f38
lea eax, [ebp - 0x30]
push 0x8a7570
push eax
call fcn.007373c0
add esp, 8
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 4
cmp dword [0xea5818], 0
mov dword [ebp - 0x1ac], ebx
je 0x788f1a
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea5818]
je 0x788f1a
call fcn.007423b0
jmp 0x788f1f
mov al, byte [0xa5d794]
test al, al
je 0x788f38
push esi
call fcn.00741e40
add esp, 4
mov byte [ebp - 0x1a1], 1
cmp eax, 6
jae 0x788f3f
mov byte [ebp - 0x1a1], 0
mov dword [ebp - 4], 0
test bl, 2
je 0x788f99
push dword [ebp - 0x18]
and ebx, 0xfffffffd
mov dword [ebp - 0x1ac], ebx
call fcn.00805aaa
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x788f99
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x788f8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x7893ba
push edx
push ecx
call fcn.00800125
add esp, 8
cmp byte [ebp - 0x1a1], 0
je 0x789220
call fcn.00737c40
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 5
call fcn.00737c40
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.004d2bd0
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.007434e0
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], 0x8a7570
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.004d0600
push dword [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.00805aaa
mov edx, dword [ebp - 0x3c]
add esp, 4
cmp edx, 8
jb 0x7890d6
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7890cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x7893ba
push edx
push ecx
call fcn.00800125
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 0x789140
push 0x4cc690
push dword [esi + 0x10]
mov byte [ebp - 4], 0xb
push dword [esi + 0x14]
call fcn.007610f0
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call fcn.00805aaa
push 0x4cc670
push dword [esi]
mov byte [ebp - 4], 0xc
push dword [esi + 4]
call fcn.007610f0
push dword [esi]
mov dword [esi + 8], 0
call fcn.00805aaa
push 0x20
push esi
call fcn.00800125
add esp, 0x28
mov dword [ebp - 4], 0xd
call fcn.00737c40
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x789188
mov eax, 0xffff
add word [ecx + 8], ax
jne 0x789180
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x789180
cmp byte [esi + 0xa], 0
je 0x789175
push dword [esi]
call fcn.00805aaa
add esp, 4
push 0xc
push esi
call fcn.00800125
add esp, 8
call fcn.00737c40
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xe
call fcn.00737c40
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
je 0x7891d0
mov eax, 0xffff
add word [ecx + 8], ax
jne 0x7891c8
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x7891c8
cmp byte [esi + 0xa], 0
je 0x7891bd
push dword [esi]
call fcn.00805aaa
add esp, 4
push 0xc
push esi
call fcn.00800125
add esp, 8
call fcn.00737c40
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xf
call fcn.00737c40
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
je 0x789215
mov eax, 0xffff
add word [ecx + 8], ax
jne 0x789210
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x789210
cmp byte [esi + 0xa], 0
je 0x789205
push dword [esi]
call fcn.00805aaa
add esp, 4
push 0xc
push esi
call fcn.00800125
add esp, 8
call fcn.00737c40
mov byte [ebp - 4], 0
mov al, 1
jmp 0x788ed6
cmp dword [edi + 0x10], 0
je 0x789390
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00788550
mov esi, dword [0x9b7ac8]
add esp, 8
mov dword [ebp - 0x1b0], eax
cmp dword [eax + 0x14], 8
jb 0x789255
mov ecx, dword [eax]
mov dword [ebp - 0x1b0], ecx
mov ecx, dword [ebp - 0x1a8]
cmp dword [ecx + 0x14], 8
jb 0x789263
mov edi, dword [ecx]
cmp dword [ecx + 0x10], 0
mov ebx, dword [eax + 0x10]
je 0x78932e
push 0x100
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.00802640
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 0x7892be
nop
movzx eax, word [ecx]
cmp ax, word [ebp - 0x1b4]
jae 0x7892f1
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x1a0], 1
cmp ecx, edx
jne 0x7892a0
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 0x78931f
cmp byte [ebp + eax - 0x1a0], 0
je 0x78931f
cmp esi, edi
je 0x78932e
sub esi, 2
jmp 0x7892d6
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 0x78931f
movzx edx, word [esi]
cmp word [eax], dx
je 0x789325
add eax, 2
sub ecx, 1
jne 0x789312
sub esi, edi
sar esi, 1
jmp 0x789331
cmp esi, edi
je 0x78932e
sub esi, 2
jmp 0x789303
or esi, 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00436e00
mov eax, dword [0x9b7ac8]
cmp esi, eax
jne 0x78937c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00788550
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x78935e
mov eax, dword [eax]
movzx esi, word [eax]
lea ecx, [ebp - 0xa0]
call fcn.00436e00
mov edi, dword [ebp - 0x1a8]
mov ecx, edi
push esi
call fcn.007663b0
jmp 0x78939c
mov edi, dword [ebp - 0x1a8]
mov ecx, edi
push eax
lea eax, [esi + 1]
push eax
call fcn.004d93f0
jmp 0x78939c
push 0x88ff8c
mov ecx, edi
call fcn.005323d0
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.00800392
mov esp, ebp
pop ebp
ret
call fcn.00805a59
int3