Function at 0x403c93
Capabilities:
Accept command line arguments
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42b6ec]
push ebx
push esi
push edi
mov edi, 0x42b6ec
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [0x42b6ec]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
xor ebx, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [0x42b6ec]
mov ecx, edi
mov byte [ebp - 0x18], 0x7f
mov byte [ebp - 0xc], bl
mov byte [ebp - 0x20], bl
mov dword [ebp - 0x10], ebx
call dword [eax + 0xc]
mov esi, eax
add esi, 0x10
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], ebx
je 0x403d34
push dword [ebp + 0x10]
call fcn.00410171
test eax, eax
pop ecx
je 0x403d34
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x28], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x403d26
push 0x42436c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403d26
mov dword [ebp - 0x14], 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
jmp 0x403d36
xor eax, eax
cmp eax, ebx
je 0x403eea
call fcn.00404584
test eax, eax
je 0x403d54
mov byte [ebp - 0x18], 3
mov byte [ebp - 0x20], 1
jmp 0x403eea
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401bc3
add esp, 0xc
test eax, eax
jne 0x403d74
mov byte [ebp - 0xc], bl
jmp 0x403eea
push 0x423d48
lea ebx, [ebp - 4]
call fcn.00401abd
pop ecx
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403df1
push str.ktoolupd.zip
lea ebx, [ebp + 0x10]
call fcn.00401abd
push dword [ebp + 0x10]
call fcn.00401df1
test eax, eax
pop ecx
pop ecx
jne 0x403dc5
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004028bd
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004028bd
jmp 0x403eea
push dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
call fcn.00401ed0
test eax, eax
pop ecx
push dword [ebp + 0x10]
je 0x403de0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x403daa
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004028bd
lea esi, [ebp - 8]
call fcn.004021e8
test eax, eax
je 0x403edc
mov eax, dword [0x42b6ec]
mov ecx, edi
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [0x42b6ec]
add esi, 0x10
mov ecx, edi
mov dword [ebp - 0x14], esi
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebp - 0x10], 0
mov dword [ebp + 0x10], eax
jne 0x403e4c
push str.http:__dl.ijinshan.com_safe_update_4.6.0.3702.exe
lea eax, [ebp - 0x14]
push eax
call fcn.00402329
push str.B6100279A45007FC594570D394ADE4ED
lea eax, [ebp + 0x10]
push eax
call fcn.00402329
push str.update_4.6.0.3702.exe
jmp 0x403e73
cmp dword [ebp - 0x10], 1
jne 0x403ecc
push str.http:__dl.ijinshan.com_safe_update_4.7.0.4215.exe
lea eax, [ebp - 0x14]
push eax
call fcn.00402329
push str.DCB2477E72F23D94B5CFA930A7C55E94
lea eax, [ebp + 0x10]
push eax
call fcn.00402329
push str.update_4.7.0.4215.exe
lea eax, [ebp - 8]
push eax
call fcn.0040363b
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
push esi
push edi
call fcn.00402068
test eax, eax
pop ecx
pop ecx
jne 0x403ea6
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0xc], 2
add eax, 0xfffffff0
call fcn.004028bd
lea eax, [edi - 0x10]
jmp 0x403db0
mov ebx, dword [ebp + 0x10]
mov edx, ebx
mov ecx, esi
call fcn.00402128
test eax, eax
jne 0x403ec6
push esi
mov byte [ebp - 0xc], 3
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebx - 0x10]
jmp 0x403e99
mov byte [ebp - 0xc], 0x7f
jmp 0x403ec1
add eax, 0xfffffff0
call fcn.004028bd
lea eax, [esi - 0x10]
call fcn.004028bd
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004028bd
mov esi, dword [ebp - 8]
call fcn.00404298
push eax
push 0x42454c
lea eax, [ebp - 0x24]
call fcn.0040278d
test byte [0x42c3cc], 1
pop ecx
pop ecx
jne 0x403f1a
or dword [0x42c3cc], 1
push 0x421c43
call fcn.0041087b
pop ecx
push dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00403269
mov ebx, esi
call fcn.00403be3
lea eax, [esi - 0x10]
call fcn.004028bd
lea eax, [edi - 0x10]
call fcn.004028bd
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004028bd
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10