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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f51d
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4a62c4]
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 0x41b326
call fcn.0042e4b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41b661
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.0040d860
push 3
push 0x485cd4
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.0040d860
mov byte [ebp - 4], 1
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2d7
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404e20
mov esi, eax
push str.ludashi_install_http_failed
push esi
mov byte [ebp - 4], 2
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406330
lea ecx, [ebp - 0x28]
call fcn.004058f0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.004058f0
jmp 0x41b661
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x41b331
xor ecx, ecx
jmp 0x41b345
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b336
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x114]
call fcn.0040b820
push dword [ebx + 0x114]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41b3f9
call fcn.0042e4b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41b661
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.0040d860
push 3
push 0x485cd4
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.0040d860
mov byte [ebp - 4], 4
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2dd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00404e20
mov esi, eax
mov byte [ebp - 4], 5
push str.ludashi_install_not_exist
jmp 0x41b62b
push dword [ebx + 0x114]
call fcn.00430020
add esp, 4
test eax, eax
jne 0x41b4a2
call fcn.0042e4b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41b661
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.0040d860
push 3
push 0x485cd4
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.0040d860
mov byte [ebp - 4], 7
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2e2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00404e20
mov esi, eax
mov byte [ebp - 4], 8
push str.ludashi_install_sign_invalid
jmp 0x41b62b
call fcn.0042e4b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41b563
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.0040d860
push 3
push 0x485cd4
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.0040d860
mov byte [ebp - 4], 0xa
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2e5
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00404e20
mov esi, eax
push str.ludashi_download_Success
push esi
mov byte [ebp - 4], 0xb
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406330
lea ecx, [ebp - 0x40]
call fcn.004058f0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004058f0
push 0
push 0
push 1
push 0
push str.instonline_down_succ
call fcn.004192f0
mov ecx, eax
call fcn.00448450
push 0
push 1
push 1
push str.__pidassistant_11___sceneinst_ludashi
push dword [ebx + 0x114]
call fcn.0042f760
add esp, 0x14
test eax, eax
jne 0x41b7d7
call fcn.0042e4b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41b65e
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.0040d860
push 3
push 0x485cd4
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.0040d860
mov byte [ebp - 4], 0xd
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2ee
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00404e20
mov esi, eax
mov byte [ebp - 4], 0xe
push str.Run_Ludashi_Install_failed
push esi
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406330
lea ecx, [ebp - 0x40]
call fcn.004058f0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004058f0
mov ebx, dword [ebp - 0x74]
call fcn.0042e4b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41b7a2
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.0040d860
push 3
push 0x485cd4
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.0040d860
mov byte [ebp - 4], 0x13
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x1a4]
push 0x2f6
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404e20
mov esi, eax
push str.ludashi_download_Invalid
push esi
mov byte [ebp - 4], 0x14
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x1a4]
call fcn.00406330
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x12
cmp edx, 0x10
jb 0x41b743
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b739
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b8d4
push edx
push ecx
call fcn.00446e66
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 0x41b790
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b786
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b8d9
push edx
push ecx
call fcn.00446e66
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.004192f0
mov ecx, eax
call fcn.00448450
push dword [ebx + 0x114]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x114]
call fcn.00410b20
jmp 0x41b8b1
call fcn.0042e4b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41b898
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.0040d860
push 3
push 0x485cd4
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.0040d860
mov byte [ebp - 4], 0x10
call fcn.0042e4b0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2f1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00404e20
mov esi, eax
push str.Run_Ludashi_Install_succ
push esi
mov byte [ebp - 4], 0x11
call fcn.00402c60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406330
lea ecx, [ebp - 0x40]
call fcn.004058f0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004058f0
push 0
push 0
push 1
push 0
push str.instonline_run
call fcn.004192f0
mov ecx, eax
call fcn.00448450
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.00447113
mov esp, ebp
pop ebp
ret 4
call fcn.00458349
call fcn.00458349
int3