Function at 0x421cd0
Capabilities:
Accept command line arguments
Delete file
Get file size
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d0e6f
mov eax, dword fs:[0]
push eax
sub esp, 0x710
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x708], eax
push ebx
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x720]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x422261
push 0x206
lea edx, [esp + 0x512]
push ebx
push edx
mov word [esp + 0x518], bx
call fcn.004aef60
add esp, 0xc
push 0x104
lea eax, [esp + 0x510]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x206
lea ecx, [esp + 0x30a]
push ebx
push ecx
mov word [esp + 0x310], bx
call fcn.004aef60
add esp, 0xc
push 0x206
lea edx, [esp + 0x102]
push ebx
push edx
mov word [esp + 0x108], bx
call fcn.004aef60
add esp, 0xc
xor eax, eax
jmp 0x421db0
movzx ecx, word [esp + eax + 0x50c]
mov word [esp + eax + 0x304], cx
add eax, 2
cmp cx, bx
jne 0x421db0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x50c]
mov word [esp + eax + 0xfc], cx
add eax, 2
cmp cx, bx
jne 0x421dd0
lea eax, [esp + 0x304]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x421df2
mov ecx, dword [str..back]
mov edx, dword [0x4daa58]
mov dword [eax], ecx
mov ecx, dword [0x4daa5c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea eax, [esp + 0xfc]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x421e22
mov edx, dword [str..new]
mov ecx, dword [0x4daa64]
mov dword [eax], edx
mov dx, word [0x4daa68]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
mov edi, 7
lea eax, [esp + 0x304]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421e66
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x308]
push eax
lea esi, [esp + 0x24]
call fcn.004018b0
mov ecx, esi
push ecx
mov dword [esp + 0x72c], ebx
call fcn.0042b1c0
add esp, 4
mov dword [esp + 0x728], 0xffffffff
cmp dword [esp + 0x34], 8
mov byte [esp + 0x17], al
jb 0x421ebc
mov edx, dword [esp + 0x20]
push edx
call fcn.004a93cc
add esp, 4
cmp byte [esp + 0x17], bl
je 0x421ed8
lea eax, [esp + 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x422261
lea eax, [esp + 0xfc]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421ef0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x100]
push ecx
lea esi, [esp + 0x24]
call fcn.004018b0
lea edx, [esp + 0x1c]
mov esi, 1
push edx
mov dword [esp + 0x72c], esi
call fcn.0042b1c0
add esp, 4
mov dword [esp + 0x728], 0xffffffff
cmp dword [esp + 0x34], 8
mov byte [esp + 0x17], al
jb 0x421f4d
mov eax, dword [esp + 0x20]
push eax
call fcn.004a93cc
add esp, 4
cmp byte [esp + 0x17], bl
je 0x421f69
lea ecx, [esp + 0xfc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x422261
cmp dword [esp + 0x3c], esi
jne 0x4223bb
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
push edi
push str.1.0.0.8
lea esi, [esp + 0xb0]
mov dword [esp + 0x730], 2
call fcn.004018b0
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], bx
mov dword [esp + 0xf8], edi
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], bx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0xc8]
push eax
sub esp, 0x1c
mov byte [esp + 0x74c], 6
mov edx, str.http:__d2.kuai8.com_update_qidong.php
mov eax, esp
lea esi, [esp + 0x78]
lea edi, [esp + 0x104]
mov dword [esp + 0x3c], esp
call fcn.00401740
mov edx, esi
mov ecx, edi
call fcn.00422420
cmp al, bl
je 0x4222fb
sub esp, 0x1c
lea ecx, [esp + 0xe0]
mov esi, esp
mov dword [esp + 0x34], esp
push ecx
call fcn.004702d0
sub esp, 0x1c
lea edx, [esp + 0xe0]
mov esi, esp
mov dword [esp + 0x88], esp
push edx
mov byte [esp + 0x764], 7
call fcn.004702d0
mov byte [esp + 0x760], 6
call fcn.004227f0
cmp al, bl
je 0x422339
lea edx, [esp + 0x304]
lea eax, [esp + 0x1c]
call fcn.00401740
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x72c], 8
call fcn.0042b1c0
add esp, 4
lea esi, [esp + 0x1c]
mov byte [esp + 0x17], al
mov byte [esp + 0x728], 6
call fcn.0046b6e0
cmp byte [esp + 0x17], bl
je 0x4220de
lea ecx, [esp + 0x304]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x422228
lea edx, [esp + 0xfc]
lea eax, [esp + 0x1c]
call fcn.00401740
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x72c], 9
call fcn.0042b1c0
add esp, 4
lea esi, [esp + 0x1c]
mov byte [esp + 0x17], al
mov byte [esp + 0x728], 6
call fcn.0046b6e0
cmp byte [esp + 0x17], bl
je 0x422134
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x422228
lea edx, [esp + 0xfc]
lea eax, [esp + 0x1c]
call fcn.00401740
lea ecx, [esp + 0x1c]
push ebx
push ecx
xor ecx, ecx
lea edx, [esp + 0x94]
mov byte [esp + 0x730], 0xa
call fcn.0042a7e0
add esp, 8
test al, al
lea esi, [esp + 0x1c]
sete byte [esp + 0x17]
mov byte [esp + 0x728], 6
call fcn.0046b6e0
cmp byte [esp + 0x17], bl
jne 0x422228
push ebx
push ebx
push 3
push ebx
push 1
push 8
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x422228
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x58]
mov esi, 8
cmp dword [esp + 0x6c], esi
jae 0x4221cb
lea eax, [esp + 0x58]
push eax
call fcn.004ab5a1
add esp, 4
cmp eax, edi
jne 0x422228
lea eax, [esp + 0x304]
push eax
lea ecx, [esp + 0x510]
push ecx
call fcn.004ab763
add esp, 8
test eax, eax
jne 0x422228
lea edx, [esp + 0x50c]
push edx
lea eax, [esp + 0x100]
push eax
call fcn.004ab763
add esp, 8
test eax, eax
je 0x422268
lea ecx, [esp + 0x50c]
push ecx
lea edx, [esp + 0x308]
push edx
call fcn.004ab763
add esp, 8
lea esi, [esp + 0x8c]
call fcn.0046b6e0
lea esi, [esp + 0x54]
call fcn.0046b6e0
lea esi, [esp + 0xe0]
call fcn.0046b6e0
lea esi, [esp + 0xc4]
call fcn.0046b6e0
lea esi, [esp + 0xa8]
call fcn.0046b6e0
xor al, al
jmp 0x4223f4
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
mov byte [esp + 0x728], 0xb
movzx ecx, word [esp + 0x46]
movzx edx, word [esp + 0x42]
movzx eax, word [esp + 0x40]
push ecx
push edx
push eax
lea ecx, [esp + 0x7c]
push str._4d__2d__2d
push ecx
call fcn.0042c840
mov eax, dword [esp + 0x4c]
add esp, 0x14
cmp dword [eax + 0x228], esi
jb 0x4222ca
mov eax, dword [eax + 0x214]
jmp 0x4222cf
add eax, 0x214
cmp dword [esp + 0x88], esi
mov ecx, dword [esp + 0x74]
jae 0x4222e0
lea ecx, [esp + 0x74]
push eax
push ecx
push 0x4daa18
push str.update
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea esi, [esp + 0x70]
call fcn.0046b6e0
lea esi, [esp + 0x8c]
call fcn.0046b6e0
lea esi, [esp + 0x54]
call fcn.0046b6e0
lea esi, [esp + 0xe0]
call fcn.0046b6e0
lea esi, [esp + 0xc4]
call fcn.0046b6e0
lea esi, [esp + 0xa8]
call fcn.0046b6e0
jmp 0x4223f2
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
mov byte [esp + 0x728], 0xc
movzx eax, word [esp + 0x46]
movzx ecx, word [esp + 0x42]
movzx edx, word [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x7c]
push str._4d__2d__2d
push eax
call fcn.0042c840
mov eax, dword [esp + 0x4c]
mov ecx, 8
add esp, 0x14
cmp dword [eax + 0x228], ecx
jb 0x4223aa
mov eax, dword [eax + 0x214]
cmp dword [esp + 0x88], ecx
jmp 0x4222d6
add eax, 0x214
cmp dword [esp + 0x88], ecx
jmp 0x4222d6
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x422261
push eax
call fcn.004ab5b2
add esp, 4
push eax
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x720]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x708]
xor ecx, esp
call fcn.004a9ce9
mov esp, ebp
pop ebp
ret 4