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

Disassembly:
push 0xffffffffffffffff
push 0x4208dc
mov eax, dword fs:[0]
push eax
sub esp, 0xc90
mov eax, dword [0x430710]
xor eax, esp
mov dword [esp + 0xc8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x430710]
xor eax, esp
push eax
lea eax, [esp + 0xca4]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0xcb8]
mov esi, dword [esp + 0xcb4]
xor eax, eax
xor ecx, ecx
test edi, edi
jle 0x401afa
jmp 0x401ae0
mov dl, byte [eax + str.GUANGSU]
xor byte [esi + ecx], dl
add eax, 1
cmp eax, 7
jl 0x401af3
xor eax, eax
add ecx, 1
cmp ecx, edi
jl 0x401ae0
lea ecx, [esp + 0x24]
call fcn.0041d1f0
push 1
push 0
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0xcb8], 0
call fcn.0041f250
push str.TheQueryInfo
lea ecx, [esp + 0x28]
call fcn.0041c870
mov ebx, eax
test ebx, ebx
jne 0x401b74
test esi, esi
je 0x401b3d
push esi
call fcn.004092a5
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, 0x432ae8
mov dword [esp + 0xcac], 0xffffffff
mov dword [esp + 0x24], vtable.TiXmlDocument.0
je 0x401b64
push eax
call fcn.00409077
add esp, 4
lea ecx, [esp + 0x24]
call fcn.0041ce80
xor eax, eax
jmp 0x402237
push 0x5190
call fcn.00408f66
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x401bd0
mov edi, 0x13
lea esi, [ebp + 0x20c]
push 0x208
lea eax, [esi - 0x208]
push 0
push eax
mov dword [esi - 0x20c], 0
call fcn.004092b0
push 0x208
push 0
push esi
call fcn.004092b0
add esp, 0x18
add esi, 0x414
sub edi, 1
jns 0x401b92
mov dword [esp + 0x14], ebp
jmp 0x401bd8
mov dword [esp + 0x14], 0
xor esi, esi
push 0x3e6
lea ecx, [esp + 0x4d6]
push esi
push ecx
mov word [esp + 0x4dc], si
call fcn.004092b0
add esp, 0xc
push str.PushList
mov ecx, ebx
call fcn.0041c870
cmp eax, esi
mov dword [esp + 0x18], esi
je 0x401d4e
mov ecx, eax
call fcn.0041c840
mov ebp, eax
test ebp, ebp
je 0x401d4e
mov eax, dword [esp + 0x14]
jmp 0x401c34
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 1
mov ebx, eax
add eax, 0x414
push str.InstallRunExe
mov ecx, ebp
mov dword [esp + 0x20], eax
call fcn.0041c870
test eax, eax
je 0x401c9f
mov eax, dword [eax + 0x18]
test eax, eax
je 0x401c9f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
test eax, eax
je 0x401c9f
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x4d0]
add eax, 8
push ecx
push eax
call fcn.00407c30
lea eax, [esp + 0x4d8]
mov edx, ebx
mov ecx, eax
sub edx, ecx
add esp, 8
add edx, 4
nop
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x401c90
push str.InstallRunParam
mov ecx, ebp
call fcn.0041c870
test eax, eax
je 0x401cff
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x401cff
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
test eax, eax
je 0x401cff
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x4d0]
add eax, 8
push ecx
push eax
call fcn.00407c30
lea eax, [esp + 0x4d8]
mov edx, ebx
mov ecx, eax
sub edx, ecx
add esp, 8
add edx, 0x20c
jmp 0x401cf0
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x401cf0
push str.InstallRunFullPath
mov ecx, ebp
call fcn.0041c870
test eax, eax
je 0x401d3d
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x401d3d
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
test eax, eax
je 0x401d3d
mov esi, dword [eax + 0x20]
add esi, 8
mov edi, str.true
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x401d3d
mov dword [ebx], 1
mov ecx, ebp
call fcn.0041c8b0
mov ebp, eax
test ebp, ebp
jne 0x401c30
xor ebp, ebp
push 0x206
lea eax, [esp + 0xc6]
push ebp
push eax
mov word [esp + 0xcc], bp
call fcn.004092b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc4]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0xc0]
push 0x5c
push edx
call fcn.00409047
mov word [eax + 2], bp
lea eax, [esp + 0xc8]
push eax
push str.szModuleName::_s
call fcn.00407ef0
push 0x206
lea ecx, [esp + 0x2de]
push ebp
push ecx
mov word [esp + 0x2e4], bp
call fcn.004092b0
add esp, 0x1c
lea edx, [esp + 0x2c8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x2c8]
push eax
push str.szTempPath::_s
call fcn.00407ef0
mov eax, dword [esp + 0x20]
add esp, 8
cmp eax, ebp
jle 0x402202
mov ebx, dword [esp + 0x14]
add ebx, 4
mov dword [esp + 0x14], eax
mov edi, 7
lea esi, [ebp + 8]
lea esp, [esp]
push ebp
push 0x42637c
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebp
mov word [esp + 0x94], bp
call fcn.00401960
cmp dword [ebx - 4], ebp
mov byte [esp + 0xcac], 1
je 0x401e6f
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401e50
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x90]
call fcn.00401960
jmp 0x401ecd
lea eax, [esp + 0xc0]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401e80
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x90]
call fcn.00401960
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401eb0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x90]
call fcn.00401860
cmp dword [esp + 0xa0], esi
mov eax, dword [esp + 0x8c]
jae 0x401ee4
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4021ba
push ebp
push 0x42637c
lea ecx, [esp + 0x74]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebp
mov word [esp + 0x78], bp
call fcn.00401960
cmp dword [ebx - 4], ebp
mov byte [esp + 0xcac], 2
je 0x401f46
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401f27
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x74]
call fcn.00401960
jmp 0x401fe0
lea eax, [esp + 0x2c8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401f50
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x2cc]
push edx
lea ecx, [esp + 0x74]
call fcn.00401960
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401f76
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x74]
call fcn.00401860
cmp dword [esp + 0x84], esi
mov ecx, dword [esp + 0x70]
jae 0x401fa1
lea ecx, [esp + 0x70]
cmp dword [esp + 0xa0], esi
mov eax, dword [esp + 0x8c]
jae 0x401fb8
lea eax, [esp + 0x8c]
push ecx
push eax
call fcn.00407d20
mov eax, dword [esp + 0x94]
add esp, 8
cmp dword [esp + 0xa0], esi
jae 0x401fd9
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
push 0x42637c
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebp
mov word [esp + 0xb0], bp
call fcn.00401960
lea esi, [ebx + 0x208]
mov eax, esi
mov byte [esp + 0xcac], 3
lea edx, [eax + 2]
jmp 0x402020
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402020
sub eax, edx
sar eax, 1
lea ecx, [esp + 0xa4]
jne 0x40204a
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x74]
push eax
call fcn.00401750
jmp 0x4020c7
push 1
push 0x426378
call fcn.00401860
cmp dword [esp + 0x84], 8
mov edx, dword [esp + 0x70]
jae 0x402068
lea edx, [esp + 0x70]
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402070
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0xac]
call fcn.00401860
push 2
push 0x426370
lea ecx, [esp + 0xac]
call fcn.00401860
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4020a5
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0xac]
call fcn.00401860
mov edi, 7
push 0x3e6
lea ecx, [esp + 0x8be]
push ebp
push ecx
mov word [esp + 0x8c4], bp
call fcn.004092b0
mov ecx, dword [esp + 0xb4]
mov esi, 8
add esp, 0xc
cmp dword [esp + 0xbc], esi
jae 0x402101
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x8b8]
jmp 0x402110
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bp
jne 0x402110
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x8b8]
push edx
call fcn.004010b0
lea eax, [esp + 0x8b8]
push eax
push 0x426358
call fcn.00407ef0
mov eax, dword [esp + 0x78]
add esp, 8
cmp dword [esp + 0x84], esi
jae 0x402158
lea eax, [esp + 0x70]
push 5
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [esp + 0xbc], esi
jb 0x40217b
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.004092a5
add esp, 4
cmp dword [esp + 0x84], esi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebp
mov word [esp + 0xa8], bp
jb 0x4021a7
mov edx, dword [esp + 0x70]
push edx
call fcn.004092a5
add esp, 4
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebp
mov word [esp + 0x70], bp
cmp dword [esp + 0xa0], esi
mov byte [esp + 0xcac], 0
jb 0x4021db
mov eax, dword [esp + 0x8c]
push eax
call fcn.004092a5
add esp, 4
add ebx, 0x414
sub dword [esp + 0x14], 1
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebp
mov word [esp + 0x8c], bp
jne 0x401e10
mov eax, dword [esp + 0x58]
cmp eax, 0x432ae8
mov dword [esp + 0xcac], 0xffffffff
mov dword [esp + 0x24], vtable.TiXmlDocument.0
je 0x402229
push eax
call fcn.00409077
add esp, 4
lea ecx, [esp + 0x24]
call fcn.0041ce80
mov eax, 1
mov ecx, dword [esp + 0xca4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc8c]
xor ecx, esp
call fcn.0040932a
add esp, 0xc9c
ret 8