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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad0fd
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4e23d4]
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 0x41f606
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41f941
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_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.0040daa0
push 3
push 0x4b5b84
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.0040daa0
mov byte [ebp - 4], 1
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2f5
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405060
mov esi, eax
push str.ludashi_install_http_failed
push esi
mov byte [ebp - 4], 2
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406570
lea ecx, [ebp - 0x28]
call fcn.00405b30
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00405b30
jmp 0x41f941
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x41f611
xor ecx, ecx
jmp 0x41f625
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f616
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x114]
call fcn.0040ba60
push dword [ebx + 0x114]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f6d9
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41f941
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_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.0040daa0
push 3
push 0x4b5b84
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.0040daa0
mov byte [ebp - 4], 4
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2fb
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405060
mov esi, eax
mov byte [ebp - 4], 5
push str.ludashi_install_not_exist
jmp 0x41f90b
push dword [ebx + 0x114]
call fcn.0043db40
add esp, 4
test eax, eax
jne 0x41f782
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41f941
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_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.0040daa0
push 3
push 0x4b5b84
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.0040daa0
mov byte [ebp - 4], 7
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x300
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405060
mov esi, eax
mov byte [ebp - 4], 8
push str.ludashi_install_sign_invalid
jmp 0x41f90b
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41f843
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_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.0040daa0
push 3
push 0x4b5b84
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.0040daa0
mov byte [ebp - 4], 0xa
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x303
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405060
mov esi, eax
push str.ludashi_download_Success
push esi
mov byte [ebp - 4], 0xb
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406570
lea ecx, [ebp - 0x40]
call fcn.00405b30
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00405b30
push 0
push 0
push 1
push 0
push str.instonline_down_succ
call fcn.0041d500
mov ecx, eax
call fcn.0045d650
push 0
push 1
push 1
push str.__pidassistant_11___sceneinst_ludashi
push dword [ebx + 0x114]
call fcn.0043d280
add esp, 0x14
test eax, eax
jne 0x41fab7
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41f93e
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_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.0040daa0
push 3
push 0x4b5b84
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.0040daa0
mov byte [ebp - 4], 0xd
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x30c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405060
mov esi, eax
mov byte [ebp - 4], 0xe
push str.Run_Ludashi_Install_failed
push esi
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406570
lea ecx, [ebp - 0x40]
call fcn.00405b30
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00405b30
mov ebx, dword [ebp - 0x74]
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41fa82
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_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.0040daa0
push 3
push 0x4b5b84
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.0040daa0
mov byte [ebp - 4], 0x13
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x1a4]
push 0x314
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00405060
mov esi, eax
push str.ludashi_download_Invalid
push esi
mov byte [ebp - 4], 0x14
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x1a4]
call fcn.00406570
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x12
cmp edx, 0x10
jb 0x41fa23
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41fa19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41fbb4
push edx
push ecx
call fcn.0045bfb6
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 0x41fa70
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41fa66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41fbb9
push edx
push ecx
call fcn.0045bfb6
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.0041d500
mov ecx, eax
call fcn.0045d650
push dword [ebx + 0x114]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x114]
call fcn.00410dc0
jmp 0x41fb91
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41fb78
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_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.0040daa0
push 3
push 0x4b5b84
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.0040daa0
mov byte [ebp - 4], 0x10
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x30f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405060
mov esi, eax
push str.Run_Ludashi_Install_succ
push esi
mov byte [ebp - 4], 0x11
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406570
lea ecx, [ebp - 0x40]
call fcn.00405b30
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00405b30
push 0
push 0
push 1
push 0
push str.instonline_run
call fcn.0041d500
mov ecx, eax
call fcn.0045d650
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.0045c263
mov esp, ebp
pop ebp
ret 4
call fcn.004844a9
call fcn.004844a9
int3