Function at 0x422330
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c56c
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 4], ebx
cmp dword [0x5c5420], 3
jl 0x42240f
add esi, 0x20
cmp dword [esi + 0x14], 0x10
jb 0x422387
mov esi, dword [esi]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5c9840]
cmp eax, dword [ecx + 4]
jle 0x4223d1
push 0x5c9840
call fcn.00533993
add esp, 4
cmp dword [0x5c9840], 0xffffffff
jne 0x4223d1
call fcn.00436720
push 0x5607c0
call fcn.00533d1d
add esp, 4
push 0x5c9840
call fcn.00533954
add esp, 4
push esi
push dword [0x5c5420]
push 0x5b0b90
push 1
push 0x5b063c
push 0x5c9848
call fcn.00436800
mov eax, dword [ebp + 0x20]
add esp, 0x18
cmp eax, 0x10
jb 0x422803
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.0042ceb0
jmp 0x422803
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
lea eax, [esi + 0x20]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x422465
mov edx, dword [ecx]
jmp 0x422467
mov edx, ecx
push 0xffffffffffffffff
push 0
push eax
mov byte [edx], 0
call fcn.0042c2e0
lea ecx, [ebp - 0x24]
call fcn.00427b30
mov ecx, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x24]
add esp, 0x18
imul ecx
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x422561
mov eax, dword [0x5c92b0]
test eax, eax
je 0x4224b4
push 0x5c5378
push 0x5c5370
call eax
add esp, 8
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x24]
lea eax, [edi + edi*2]
sub esp, 0x18
shl eax, 4
add ecx, 0xffffffd0
add eax, ecx
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0042c2e0
call fcn.00425410
test al, al
jne 0x422542
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push 0x5b0be0
push 1
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x14
lea ecx, [ebp - 0x24]
call fcn.0042b5e0
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x422803
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.0042ceb0
jmp 0x422803
push 0x5b0c00
push 0
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x10
jmp 0x422ef4
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
call fcn.00424790
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
push 0
push 0x5b03e0
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
call fcn.0042c1e0
mov byte [ebp - 4], 4
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
cmovae eax, dword [ebp + 0xc]
push eax
push 0x5b0c30
push 0
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
lea edi, [esi + 0x50]
add esp, 0x14
cmp dword [edi + 0x14], 0x10
jb 0x4225ca
mov eax, dword [edi]
jmp 0x4225cc
mov eax, edi
push eax
push 0x5b0c40
push 0
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x14
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x422690
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x42262c
mov eax, dword [ecx]
jmp 0x42262e
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0042c2e0
lea ecx, [ebp - 0x154]
call fcn.00435ce0
add esp, 0x18
lea ecx, [esi + 8]
mov ebx, 1
cmp dword [eax + 0x14], 0x10
lea edx, [eax + 0x10]
mov dword [ebp - 0x138], edx
jb 0x422665
mov eax, dword [eax]
cmp dword [ecx + 0x14], 0x10
lea edx, [ecx + 0x10]
jb 0x422670
mov ecx, dword [ecx]
mov edi, dword [ebp - 0x138]
mov edx, dword [edx]
push dword [edi]
push eax
call fcn.0042b9c0
add esp, 8
mov byte [ebp - 0x131], bl
lea edi, [esi + 0x50]
test eax, eax
je 0x422697
mov byte [ebp - 0x131], 0
test bl, 1
je 0x4226ba
mov eax, dword [ebp - 0x140]
cmp eax, 0x10
jb 0x4226ba
inc eax
lea ecx, [ebp - 0x154]
push eax
push dword [ebp - 0x154]
call fcn.0042ceb0
cmp byte [ebp - 0x131], 0
je 0x42271b
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
push str.Cancel_DownLoad__s
push 0
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x14
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x422823
mov eax, dword [ecx]
jmp 0x422825
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x138], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x42274c
mov eax, dword [ecx]
jmp 0x42274e
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0042c2e0
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x42278d
mov eax, dword [ecx]
jmp 0x42278f
mov eax, ecx
push 0xffffffffffffffff
push 0
push edi
mov byte [eax], 0
call fcn.0042c2e0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 4
push eax
call fcn.00441f30
test eax, eax
jne 0x4226e9
cmp dword [ebp - 0x58], 0x10
lea ecx, [ebp - 0x6c]
lea eax, [ebp + 0xc]
cmovae ecx, dword [ebp - 0x6c]
cmp dword [ebp + 0x20], 0x10
push ecx
cmovae eax, dword [ebp + 0xc]
push eax
push 0x5b0c44
push 1
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x18
lea ecx, [ebp - 0x6c]
call fcn.0042a3c0
lea ecx, [ebp - 0x3c]
call fcn.0042a3c0
lea ecx, [ebp - 0x24]
call fcn.0042b5e0
lea ecx, [ebp + 0xc]
call fcn.0042a3c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret 0x1c
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0042c2e0
lea ecx, [ebp - 0xb4]
call fcn.00435ce0
add esp, 0x18
lea eax, [esi + 8]
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
lea edx, [eax + 0x10]
jb 0x422855
mov eax, dword [eax]
push dword [edx]
cmp dword [ebp - 0xa0], 0x10
lea ecx, [ebp - 0xb4]
mov edx, dword [ebp - 0xa4]
cmovae ecx, dword [ebp - 0xb4]
push eax
call fcn.0042b9c0
add esp, 8
test eax, eax
lea eax, [ebp + 0xc]
je 0x4228c6
cmp dword [ebp + 0x20], 0x10
cmovae eax, dword [ebp + 0xc]
push eax
push 0x5b0950
push 1
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x14
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xb4]
call fcn.0042a3c0
jmp 0x4227e3
cmp dword [ebp + 0x20], 0x10
cmovae eax, dword [ebp + 0xc]
push eax
push 0x5b0c60
push 0
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x14
lea eax, [ebp - 0x84]
push eax
call fcn.004248c0
lea edx, [ebp - 0x84]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.00454a30
test eax, eax
jne 0x42294c
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push 0x5b0c70
push 1
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x14
lea ecx, [ebp - 0x84]
call fcn.0042a3c0
lea ecx, [ebp - 0xb4]
call fcn.0042a3c0
jmp 0x4227e3
lea ecx, [ebp - 0x12c]
call fcn.004306a0
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 8
call fcn.004302a0
push 1
sub esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x114]
call fcn.0042ba50
push eax
push 0
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x114]
call fcn.0042a2f0
push 0x5b0c88
lea edx, [ebp - 0xcc]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xfc]
call fcn.0042dc00
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0xfc]
call fcn.0042c5f0
push 0x5b0c88
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0x54]
call fcn.0042dc00
add esp, 4
push 0x5b097c
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xc
call fcn.0042a340
push 0xffffffffffffffff
push 0
lea ebx, [esi + 0x20]
push ebx
lea ecx, [ebp - 0x54]
call fcn.0042c5f0
push 0x5b0c88
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0xe4]
call fcn.0042dc00
add esp, 4
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0xd
call fcn.0042c5f0
sub esp, 0x18
lea eax, [ebp - 0x54]
mov ecx, esp
push eax
call fcn.0042a560
call fcn.00435a10
add esp, 0x18
lea eax, [ebp - 0x54]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0042a560
call fcn.004363a0
lea eax, [ebp - 0x54]
mov ecx, esp
push eax
call fcn.0042a560
call fcn.00436350
add esp, 0x18
test eax, eax
jne 0x422a90
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
push str.CreateDir_Fail__s
push 1
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x14
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x88], 0xf
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
call fcn.0042c2e0
push str._addupdate.ini
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xe
call fcn.0042a340
sub esp, 0x18
lea eax, [ebp - 0x12c]
mov ecx, esp
mov dword [ebp - 0x13c], esp
push eax
call fcn.0042a560
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x138], esp
push ebx
call fcn.0042a560
sub esp, 0x18
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x9c]
mov ecx, esp
push eax
call fcn.0042a560
mov byte [ebp - 4], 0xe
call fcn.00429a90
push dword [esi + 4]
push str.UpdateType__d
push 0
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x14
cmp dword [esi + 4], 2
sete al
movzx eax, al
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00430c70
test al, al
jne 0x422c03
sub esp, 0x18
lea eax, [ebp - 0x54]
mov ecx, esp
push eax
call fcn.0042a560
call fcn.00435a10
add esp, 0x18
lea eax, [ebp - 0x84]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0042a560
call fcn.00435a10
add esp, 0x18
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
cmovae eax, dword [ebp + 0xc]
push eax
push 0x5b0cc0
push 1
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x14
lea ecx, [ebp - 0x9c]
call fcn.0042a3c0
lea ecx, [ebp - 0xe4]
call fcn.0042a3c0
lea ecx, [ebp - 0x54]
call fcn.0042a3c0
lea ecx, [ebp - 0xfc]
call fcn.0042a3c0
lea ecx, [ebp - 0xcc]
call fcn.0042a3c0
lea ecx, [ebp - 0x114]
call fcn.0042a3c0
lea ecx, [ebp - 0x12c]
call fcn.0042a3c0
jmp 0x422931
cmp dword [esi + 4], 2
sete al
movzx eax, al
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00430c70
sub esp, 0x18
mov ecx, esp
test al, al
jne 0x422c67
lea eax, [ebp - 0x54]
push eax
call fcn.0042a560
call fcn.00435a10
add esp, 0x18
lea eax, [ebp - 0x84]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0042a560
call fcn.00435a10
add esp, 0x18
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
cmovae eax, dword [ebp + 0xc]
push eax
push 0x5b0cd0
jmp 0x422b9f
lea eax, [ebp - 0x84]
push eax
call fcn.0042a560
call fcn.00436350
add esp, 0x18
test eax, eax
je 0x422c98
sub esp, 0x18
lea eax, [ebp - 0x84]
mov ecx, esp
push eax
call fcn.0042a560
call fcn.00435a10
add esp, 0x18
sub esp, 0x18
lea eax, [ebp - 0xe4]
mov ecx, esp
mov dword [ebp - 0x130], esp
push eax
call fcn.0042a560
sub esp, 0x18
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x54]
mov ecx, esp
push eax
call fcn.0042a560
mov byte [ebp - 4], 0xe
call fcn.004269e0
test al, al
jne 0x422ce4
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push str._s_RenameVersionFolder_Fail_
jmp 0x422b9f
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.0042a560
call fcn.00425080
test al, al
jne 0x422d0e
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push 0x5b0744
jmp 0x422b9f
sub esp, 0x18
lea eax, [ebp - 0x9c]
mov ecx, esp
push eax
call fcn.0042a560
call fcn.00429d10
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.0042a560
call fcn.00425410
test al, al
jne 0x422d4e
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push 0x5b0ce0
jmp 0x422b9f
mov eax, dword [esi + 4]
cmp eax, 2
je 0x422d5b
cmp eax, 6
jne 0x422d60
call fcn.004314f0
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push 0x5b0cf8
push 0
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x14
push str.LAUNCHER_UPDATE
push 0
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x10
lea eax, [ebp - 0xe4]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0042a560
push 0x7530
push 0
call fcn.00425710
push str.KPDATA_UPDATE
push 0
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x10
mov cl, 1
call fcn.00453100
sub esp, 0x18
mov ecx, esp
push str.SDLCH.exe
call fcn.0042a500
mov cl, 1
call fcn.00453320
add esp, 0x18
sub esp, 0x18
mov ecx, esp
push str.dbillsoft.exe
call fcn.0042a500
mov cl, 1
call fcn.00453320
add esp, 0x18
sub esp, 0x18
mov ecx, esp
push str.ubillsoft.exe
call fcn.0042a500
mov cl, 1
call fcn.00453320
add esp, 0x18
call fcn.004314f0
call fcn.004264f0
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 0x18
lea eax, [ebp - 0x84]
mov ecx, esp
push eax
call fcn.0042a560
call fcn.00435a10
add esp, 0x18
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
cmovae eax, dword [ebp + 0xc]
push eax
push str._s_AddPackage_Finish_
push 0
push 0x5b063c
call fcn.004367b0
push eax
call fcn.00436800
add esp, 0x14
lea ecx, [ebp - 0x9c]
call fcn.0042a3c0
lea ecx, [ebp - 0xe4]
call fcn.0042a3c0
lea ecx, [ebp - 0x54]
call fcn.0042a3c0
lea ecx, [ebp - 0xfc]
call fcn.0042a3c0
lea ecx, [ebp - 0xcc]
call fcn.0042a3c0
lea ecx, [ebp - 0x114]
call fcn.0042a3c0
lea ecx, [ebp - 0x12c]
call fcn.0042a3c0
lea ecx, [ebp - 0x84]
call fcn.0042a3c0
lea ecx, [ebp - 0xb4]
call fcn.0042a3c0
lea ecx, [ebp - 0x6c]
call fcn.0042a3c0
lea ecx, [ebp - 0x3c]
call fcn.0042a3c0
lea ecx, [ebp - 0x24]
call fcn.0042b5e0
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x422f11
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.0042ceb0
mov al, 1
jmp 0x422805