Function at 0x451480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51996c
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x578bd4]
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 esi, dword [ebp + 8]
mov dword [ebp - 0x1c0], esi
push str.TMPDIR
mov dword [ebp - 4], 0
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], 0
call fcn.004e7eca
add esp, 4
lea ecx, [ebp - 0x30]
push eax
call fcn.004287a0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
push esi
call fcn.0044fa60
add esp, 8
mov ebx, 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1ac], ebx
call fcn.00418510
cmp dword [esi + 0x10], 0
jne 0x4518e6
push 0x53066c
call fcn.004e7eca
add esp, 4
lea ecx, [ebp - 0x30]
push eax
call fcn.004287a0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0044fa60
add esp, 8
mov byte [ebp - 4], 3
cmp esi, eax
je 0x451563
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x451558
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00420000
lea ecx, [ebp - 0x50]
call fcn.00418510
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00418510
cmp dword [esi + 0x10], 0
jne 0x4518e6
push str.TEMP
call fcn.004e7eca
add esp, 4
lea ecx, [ebp - 0x30]
push eax
call fcn.004287a0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0044fa60
add esp, 8
mov byte [ebp - 4], 5
cmp esi, eax
je 0x4515cb
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4515c0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00420000
lea ecx, [ebp - 0x50]
call fcn.00418510
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00418510
cmp dword [esi + 0x10], 0
jne 0x4518e6
push 0x105
push esi
lea ecx, [ebp - 0x1bc]
call fcn.0044e380
mov eax, dword [eax + 4]
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x1bc]
mov esi, eax
call fcn.0043d600
test esi, esi
jne 0x4518d6
xor al, al
mov edi, 0xffff
test al, al
jne 0x451688
lea eax, [ebp - 0x30]
push 0x52a774
push eax
call fcn.0043f490
add esp, 8
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 6
cmp dword [0x57c0e0], 0
mov dword [ebp - 0x1ac], ebx
je 0x45166a
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x57c0e0]
je 0x45166a
call fcn.004667a0
jmp 0x45166f
mov al, byte [0x5785ac]
test al, al
je 0x451688
push esi
call fcn.00466090
add esp, 4
mov byte [ebp - 0x1a1], 1
cmp eax, 6
jae 0x45168f
mov byte [ebp - 0x1a1], 0
mov dword [ebp - 4], 0
test bl, 2
je 0x4516e9
push dword [ebp - 0x18]
and ebx, 0xfffffffd
mov dword [ebp - 0x1ac], ebx
call fcn.004e0f9d
mov ecx, dword [ebp - 0x1c]
add esp, 4
cmp ecx, 8
jb 0x4516e9
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4516df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451a77
push ecx
push edx
call fcn.004c8cae
add esp, 8
cmp byte [ebp - 0x1a1], 0
je 0x4518d6
call fcn.0043fb80
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 7
call fcn.0043fb80
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 8
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.00442110
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub esp, 0x14
mov dword [ebp - 4], 9
mov esi, esp
mov dword [ebp - 0x1b8], esp
call sub.KERNEL32.dll_GetLastError
push eax
push esi
call fcn.004677a0
add esp, 8
xorps xmm0, xmm0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0xa0], 6
mov dword [ebp - 0x98], str.D:wxWidgets_3.2.0_srccommon_filename.cpp
mov dword [ebp - 0x90], str.wxFileName::GetTempDir
mov dword [ebp - 0x94], 0x4d2
mov dword [ebp - 0x8c], 0x52a774
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x80], xmm0
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0xb
call sub.KERNEL32.dll_GetLastError
push eax
push str.GetTempPath
push 0x4d2
push str.D:wxWidgets_3.2.0_srccommon_filename.cpp
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0xa0]
call fcn.00446d40
lea ecx, [ebp - 0x70]
call fcn.00418510
lea ecx, [ebp - 0x98]
call fcn.00429010
mov dword [ebp - 4], 0xd
call fcn.0043fb80
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x451848
add word [ecx + 8], di
jne 0x451840
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x451840
cmp byte [esi + 0xa], 0
je 0x451835
push dword [esi]
call fcn.004e0f9d
add esp, 4
push 0xc
push esi
call fcn.004c8cae
add esp, 8
call fcn.0043fb80
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xe
call fcn.0043fb80
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
je 0x45188b
add word [ecx + 8], di
jne 0x451883
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x451883
cmp byte [esi + 0xa], 0
je 0x451878
push dword [esi]
call fcn.004e0f9d
add esp, 4
push 0xc
push esi
call fcn.004c8cae
add esp, 8
call fcn.0043fb80
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xf
call fcn.0043fb80
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
je 0x4518cb
add word [ecx + 8], di
jne 0x4518c6
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4518c6
cmp byte [esi + 0xa], 0
je 0x4518bb
push dword [esi]
call fcn.004e0f9d
add esp, 4
push 0xc
push esi
call fcn.004c8cae
add esp, 8
call fcn.0043fb80
mov byte [ebp - 4], 0
mov al, 1
jmp 0x451626
mov esi, dword [ebp - 0x1a8]
cmp dword [esi + 0x10], 0
je 0x451a4d
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00450d10
mov ebx, dword [0x52e46c]
add esp, 8
mov dword [ebp - 0x1b0], eax
cmp dword [eax + 0x14], 8
jb 0x45190e
mov ecx, dword [eax]
mov dword [ebp - 0x1b0], ecx
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x451918
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1b4], eax
test esi, esi
je 0x4519f4
push 0x100
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.004ca660
mov eax, dword [ebp - 0x1b0]
add esp, 0xc
mov edx, dword [ebp - 0x1b4]
mov ecx, eax
mov dword [ebp - 0x1b8], 0x100
lea edx, [eax + edx*2]
cmp eax, edx
je 0x45197f
movzx eax, word [ecx]
cmp ax, word [ebp - 0x1b8]
jae 0x4519ab
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x1a0], 1
cmp ecx, edx
jne 0x451961
mov ecx, dword [ebp - 0x1b8]
lea eax, [esi - 1]
cmp eax, ebx
cmovb ebx, eax
lea esi, [edi + ebx*2]
movzx eax, word [esi]
cmp ax, cx
jae 0x4519dd
cmp byte [ebp + eax - 0x1a0], 0
je 0x4519dd
cmp esi, edi
je 0x4519f4
sub esi, 2
jmp 0x451990
mov edx, dword [ebp - 0x1b4]
lea eax, [esi - 1]
cmp eax, ebx
mov ecx, edx
cmovb ebx, eax
lea esi, [edi + ebx*2]
mov ebx, dword [ebp - 0x1b0]
mov eax, ebx
test edx, edx
je 0x4519dd
movzx edx, word [esi]
nop dword [eax]
cmp word [eax], dx
je 0x4519e3
add eax, 2
sub ecx, 1
jne 0x4519d0
sub esi, edi
sar esi, 1
jmp 0x4519f7
cmp esi, edi
je 0x4519f4
mov ecx, dword [ebp - 0x1b4]
sub esi, 2
mov eax, ebx
jmp 0x4519ca
or esi, 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00418510
mov eax, dword [0x52e46c]
cmp esi, eax
jne 0x451a39
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00450d10
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x451a1e
mov eax, dword [eax]
movzx esi, word [eax]
lea ecx, [ebp - 0x50]
call fcn.00418510
push esi
mov esi, dword [ebp - 0x1a8]
mov ecx, esi
call fcn.0044e6d0
jmp 0x451a59
push eax
lea eax, [esi + 1]
mov esi, dword [ebp - 0x1a8]
push eax
mov ecx, esi
call fcn.00453430
jmp 0x451a59
push 0x529758
mov ecx, esi
call fcn.0043d780
mov eax, esi
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.004c9126
mov esp, ebp
pop ebp
ret
call fcn.004ce51f
int3