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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571f65
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5d7c7c]
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 edx, dword [ebp + 0xc]
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x428], ecx
test edx, edx
je 0x4741fc
mov ecx, edx
lea edi, [eax + 8]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473e12
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040d900
push 0x584e04
push 0x595eec
mov ecx, edi
call fcn.004303a0
mov ecx, dword [edi]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x473e56
lea eax, [ecx - 0x10]
push eax
call fcn.0040c650
add esp, 4
add eax, 0x10
jmp 0x473e8f
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x473e66
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x473e72
call fcn.0040cdc0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [edi]
lea ecx, [ebp - 0x42c]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.004108a0
mov eax, dword [ebp - 0x42c]
mov edx, 0x584e04
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x473ebc
test si, si
je 0x473eb8
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x473ebc
add ecx, 4
add edx, 4
test si, si
jne 0x473e96
xor esi, esi
jmp 0x473ec1
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x473ed9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 8
test esi, esi
jne 0x473f7c
mov edx, dword [edi]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
cmovns esi, eax
cmp esi, ecx
jl 0x473f0e
lea eax, [edx - 0x10]
push eax
call fcn.0040c650
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x42c], esi
jmp 0x473f3f
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x473f1e
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x473f2a
call fcn.0040cdc0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [edi]
lea ecx, [ebp - 0x42c]
call fcn.004108a0
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x42c]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0041cf00
lea edx, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov ebx, 0x18
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x473f7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x473f7f
or esi, 0xffffffff
push edi
call fcn.00411d10
add esp, 4
test eax, eax
jne 0x4740ff
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00512920
mov ecx, dword [ebp - 0x430]
add esp, 0xc
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x473fc4
mov eax, dword [ecx]
lea edx, [ebp - 0x420]
push 0x104
push edx
push ecx
call dword [eax + 0x18]
push 0x595ef0
lea eax, [ebp - 0x434]
push edi
push eax
call fcn.0040bda0
add esp, 0xc
push dword [eax]
or ebx, 1
mov dword [ebp - 4], 1
mov dword [ebp - 0x428], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x474062
push str.ComputerZ_CN.exe
lea eax, [ebp - 0x42c]
push edi
push eax
call fcn.0040bda0
add esp, 0xc
push dword [eax]
or ebx, 2
mov dword [ebp - 4], 2
mov dword [ebp - 0x428], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x474062
push str.lds_setup.log
lea eax, [ebp - 0x430]
push edi
push eax
call fcn.0040bda0
add esp, 0xc
or ebx, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x474062
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x421], 0
test eax, eax
je 0x474069
mov byte [ebp - 0x421], 1
test bl, 4
je 0x474094
mov edx, dword [ebp - 0x430]
and ebx, 0xfffffffb
mov dword [ebp - 0x428], ebx
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474094
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
test bl, 2
je 0x4740c6
mov edx, dword [ebp - 0x42c]
and ebx, 0xfffffffd
mov dword [ebp - 0x428], ebx
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4740c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x434]
mov eax, esi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4740ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x421], 0
jne 0x4740ff
push str.LuDaShi
mov ecx, edi
call fcn.0044de80
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00512920
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.lds_setup.log
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474157
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040cdc0
mov ecx, eax
test ecx, ecx
je 0x47421a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x428]
call fcn.0040e2c0
test al, al
jne 0x4741c2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4741a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040d900
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 4
push eax
mov ecx, 0x5df108
call fcn.00477910
mov edx, dword [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4741fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004acb88
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0040ae00
int3