Function at 0x473bc0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6823dc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x260], eax
xor eax, eax
mov dword [ebp - 0x260], 0x7aa920
mov dword [0x7aa930], 0
mov dword [0x7aa934], 7
mov word [0x7aa920], ax
mov dword [ebp - 4], eax
mov dword [0x7aa948], eax
mov dword [0x7aa94c], 7
mov word [0x7aa938], ax
mov dword [0x7aa960], eax
mov dword [0x7aa964], 7
mov word [0x7aa950], ax
mov dword [0x7aa978], eax
mov dword [0x7aa97c], 7
mov word [0x7aa968], ax
mov dword [0x7aa980], eax
mov dword [0x7aa984], eax
mov dword [0x7aa988], eax
mov word [0x7aa98c], ax
mov dword [0x7aa9a0], eax
mov dword [0x7aa9a4], 7
mov word [0x7aa990], ax
mov dword [0x7aa9b8], eax
mov dword [0x7aa9bc], 7
mov word [0x7aa9a8], ax
mov dword [0x7aa9d0], eax
mov dword [0x7aa9d4], 7
mov word [0x7aa9c0], ax
mov dword [0x7aa9e8], eax
mov dword [0x7aa9ec], 7
mov word [0x7aa9d8], ax
push 0x104
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 7
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x473dba
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473d07
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, 0x7aa920
call fcn.00459550
push 0xffffffffffffffff
push 0x5c
mov ecx, 0x7aa920
call fcn.00468720
mov esi, eax
cmp esi, 0xffffffff
je 0x473dba
cmp dword [0x7aa934], 8
mov eax, 0x7aa920
mov ecx, 0x7aa938
cmovae eax, dword [0x7aa920]
inc esi
push esi
push eax
call fcn.00459550
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x258]
mov ecx, 0x7aa920
push eax
call fcn.0046ac50
mov esi, eax
cmp esi, 0x7aa950
je 0x473daf
mov ecx, 0x7aa950
call fcn.00453390
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x7aa950], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x7aa960], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x258]
call fcn.00453390
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0x1c
push str.APPDATA
push eax
mov edx, 0x6f8b90
lea ecx, [ebp - 0x240]
call fcn.00471970
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x473f54
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x240]
mov esi, dword [ebp - 0x240]
cmp edx, 8
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x473e52
cmp ecx, edx
jae 0x473e37
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x240]
cmovae eax, esi
mov dword [eax + ecx*2], 0x5c
jmp 0x473e52
push 0x5c
mov byte [ebp - 0x25c], 0
push dword [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x240]
call fcn.0046acb0
push 6
push 0x76b278
lea ecx, [ebp - 0x240]
call fcn.00459fe0
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
jae 0x473e96
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
mov dword [eax + ecx*2], 0x5c
jmp 0x473eb1
push 0x5c
mov byte [ebp - 0x25c], 0
push dword [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x240]
call fcn.0046acb0
cmp dword [0x79da20], 8
lea ecx, [ebp - 0x240]
push dword [0x79da1c]
mov eax, 0x79da0c
cmovae eax, dword [0x79da0c]
push eax
call fcn.00459fe0
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x240]
push eax
call esi
test eax, eax
jne 0x473f14
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push eax
call esi
test eax, eax
je 0x473f54
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
push dword [ebp - 0x230]
cmovae eax, dword [ebp - 0x240]
mov ecx, 0x7aa968
push eax
call fcn.00459550
mov ecx, dword [0x7aa978]
test ecx, ecx
jne 0x474045
push ecx
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], ecx
push eax
push 0x104
lea ecx, [ebp - 0x26c]
call fcn.00464120
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x268]
mov esi, dword [ebp - 0x26c]
sub eax, esi
sar eax, 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, esi
mov dword [ebp - 0x248], 0
xor eax, eax
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x473fc0
sub edx, ecx
lea ecx, [ebp - 0x258]
sar edx, 1
push edx
push esi
call fcn.00459550
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 8
call fcn.00453330
mov ecx, 0x7aa968
call fcn.00453390
movups xmm0, xmmword [ebp - 0x258]
xor eax, eax
lea ecx, [ebp - 0x258]
mov word [ebp - 0x258], ax
movups xmmword [0x7aa968], xmm0
movq xmm0, qword [ebp - 0x248]
movq qword [0x7aa978], xmm0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
call fcn.00453390
mov ecx, dword [0x7aa978]
test ecx, ecx
je 0x47409e
mov edx, dword [0x7aa97c]
mov eax, 0x7aa968
mov esi, dword [0x7aa968]
cmp edx, 8
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x47409e
cmp ecx, edx
jae 0x474084
lea eax, [ecx + 1]
cmp edx, 8
mov dword [0x7aa978], eax
mov eax, 0x7aa968
cmovae eax, esi
mov dword [eax + ecx*2], 0x5c
jmp 0x47409e
push 0x5c
mov byte [ebp - 0x25c], 0
push dword [ebp - 0x25c]
push ecx
mov ecx, 0x7aa968
call fcn.0046acb0
lea ecx, [ebp - 0x240]
call fcn.00453390
mov eax, 0x7aa920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00611399
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret