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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c85d
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4a62e4]
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 ebx, ecx
mov dword [ebp - 0x74], ebx
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 2
je 0x41cba6
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41cee1
push 0x3a
push str.d:_buildlib_commonwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.0040e510
push 3
push 0x482dd8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040e510
mov byte [ebp - 4], 1
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2d7
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405aa0
mov esi, eax
push str.ludashi_install_http_failed
push esi
mov byte [ebp - 4], 2
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406fb0
lea ecx, [ebp - 0x28]
call fcn.00406570
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00406570
jmp 0x41cee1
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x41cbb1
xor ecx, ecx
jmp 0x41cbc5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cbb6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x110]
call fcn.0040c6c0
push dword [ebx + 0x110]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41cc79
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41cee1
push 0x3a
push str.d:_buildlib_commonwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.0040e510
push 3
push 0x482dd8
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 3
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040e510
mov byte [ebp - 4], 4
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2dd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405aa0
mov esi, eax
mov byte [ebp - 4], 5
push str.ludashi_install_not_exist
jmp 0x41ceab
push dword [ebx + 0x110]
call fcn.00433820
add esp, 4
test eax, eax
jne 0x41cd22
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41cee1
push 0x3a
push str.d:_buildlib_commonwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.0040e510
push 3
push 0x482dd8
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 6
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040e510
mov byte [ebp - 4], 7
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2e2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405aa0
mov esi, eax
mov byte [ebp - 4], 8
push str.ludashi_install_sign_invalid
jmp 0x41ceab
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41cde3
push 0x3a
push str.d:_buildlib_commonwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.0040e510
push 3
push 0x482dd8
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 9
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040e510
mov byte [ebp - 4], 0xa
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2e5
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405aa0
mov esi, eax
push str.ludashi_download_Success
push esi
mov byte [ebp - 4], 0xb
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406fb0
lea ecx, [ebp - 0x40]
call fcn.00406570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00406570
push 0
push 0
push 1
push 0
push str.instonline_down_succ
call fcn.0041acf0
mov ecx, eax
call fcn.00444490
push 0
push 1
push 1
push str.__pidassistant_11___sceneinst_ludashi
push dword [ebx + 0x110]
call fcn.00433140
add esp, 0x14
test eax, eax
jne 0x41d057
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41cede
push 0x3a
push str.d:_buildlib_commonwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.0040e510
push 3
push 0x482dd8
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040e510
mov byte [ebp - 4], 0xd
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2ee
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405aa0
mov esi, eax
mov byte [ebp - 4], 0xe
push str.Run_Ludashi_Install_failed
push esi
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406fb0
lea ecx, [ebp - 0x40]
call fcn.00406570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00406570
mov ebx, dword [ebp - 0x74]
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41d022
push 0x3a
push str.d:_buildlib_commonwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.0040e510
push 3
push 0x482dd8
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0040e510
mov byte [ebp - 4], 0x13
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x1a4]
push 0x2f6
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00405aa0
mov esi, eax
push str.ludashi_download_Invalid
push esi
mov byte [ebp - 4], 0x14
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x1a4]
call fcn.00406fb0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x12
cmp edx, 0x10
jb 0x41cfc3
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41cfb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d154
push edx
push ecx
call fcn.00442ea6
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x41d010
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41d006
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d159
push edx
push ecx
call fcn.00442ea6
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
push 0
push 0
push 1
push 0
push str.instonline_down_fail
call fcn.0041acf0
mov ecx, eax
call fcn.00444490
push dword [ebx + 0x110]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x110]
call fcn.004117d0
jmp 0x41d131
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41d118
push 0x3a
push str.d:_buildlib_commonwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.0040e510
push 3
push 0x482dd8
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xf
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040e510
mov byte [ebp - 4], 0x10
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2f1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405aa0
mov esi, eax
push str.Run_Ludashi_Install_succ
push esi
mov byte [ebp - 4], 0x11
call fcn.00403950
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406fb0
lea ecx, [ebp - 0x40]
call fcn.00406570
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00406570
push 0
push 0
push 1
push 0
push str.instonline_run
call fcn.0041acf0
mov ecx, eax
call fcn.00444490
mov eax, 1
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.00443153
mov esp, ebp
pop ebp
ret 4
call fcn.00453ee9
call fcn.00453ee9
int3