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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40df12
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x417018]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov eax, dword [0x417018]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x40], ebx
cmp eax, ebx
je 0x401c77
xor ecx, ecx
cmp cx, word [eax]
je 0x401c77
call fcn.00401ccf
lea eax, [esp + 0x44]
push eax
call fcn.0040512f
mov dword [esp + 0x1b8], ebx
push str.http:__121.9.201.163:8019
lea esi, [esp + 0x98]
call fcn.00402843
mov byte [esp + 0x1b8], 1
mov eax, dword [sym.imp.MSVCR100.dll___argc]
cmp dword [eax], 3
mov dword [esp + 0x28], ebx
jl 0x401c49
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401c49
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x1b8], 2
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCR100.dll__wcsicmp]
push str._stack
push dword [eax + 4]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x40187e
push str._BugReport.aspx
lea eax, [esp + 0x98]
push eax
call fcn.00401c9f
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
push dword [eax + 8]
lea esi, [esp + 0xb4]
call fcn.00402843
mov byte [esp + 0x1b8], 3
push ebx
push ebx
mov eax, esi
push eax
lea ebx, [esp + 0x38]
call fcn.00401547
add esp, 0xc
mov ebx, eax
mov byte [esp + 0x1b8], 2
push 1
xor edi, edi
call fcn.00402865
test ebx, ebx
je 0x401867
lea eax, [esp + 0x18]
push eax
call fcn.0040bc4b
mov byte [esp + 0x1b8], 4
lea esi, [esp + 0x18]
call fcn.0040bcea
cmp dword [esp + 0xa8], 8
mov edx, dword [esp + 0x94]
jae 0x401827
lea edx, [esp + 0x94]
mov esi, dword [esp + 0x2c]
push ebx
push esi
push ebx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0040c262
test eax, eax
je 0x40184e
push esi
mov byte [esi + eax], 0
call dword [sym.imp.MSVCR100.dll_atoi]
pop ecx
mov dword [esp + 0x28], eax
lea esi, [esp + 0x18]
call fcn.0040bdb4
mov byte [esp + 0x1b8], 2
mov eax, esi
push eax
call fcn.0040bc8a
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
jmp 0x4019f6
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
push str._dmp
push dword [eax + 4]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x4019f6
mov eax, dword [sym.imp.MSVCR100.dll___argc]
cmp dword [eax], 4
jl 0x4019f6
push str._DmpReport.aspx
lea eax, [esp + 0x98]
push eax
call fcn.00401c9f
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
push dword [eax + 0xc]
lea esi, [esp + 0xd0]
call fcn.00402843
mov byte [esp + 0x1b8], 5
lea eax, [esp + 0xb0]
push eax
mov ecx, esi
call fcn.0040c81d
pop ecx
mov byte [esp + 0x17], al
mov byte [esp + 0x1b8], 2
push 1
xor edi, edi
call fcn.00402865
cmp byte [esp + 0x17], bl
je 0x4019e6
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
push dword [eax + 8]
lea esi, [esp + 0x7c]
call fcn.00402843
mov byte [esp + 0x1b8], 6
push 1
mov eax, esi
push 0x10
push eax
lea ebx, [esp + 0x38]
call fcn.00401547
add esp, 0xc
mov ebx, eax
mov byte [esp + 0x1b8], 2
push 1
call fcn.00402865
cmp ebx, 0x10
jbe 0x4019e4
mov edi, dword [esp + 0x2c]
push 0x10
lea eax, [esp + 0xb4]
push eax
mov eax, dword [esp + 0x38]
sub eax, edi
sub eax, ebx
push eax
lea eax, [edi + ebx]
push eax
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
add ebx, 0x10
call fcn.0040bc4b
mov byte [esp + 0x1b8], 7
lea esi, [esp + 0x18]
call fcn.0040bcea
cmp dword [esp + 0xa8], 8
mov edx, dword [esp + 0x94]
jae 0x4019a8
lea edx, [esp + 0x94]
push ebx
push edi
push ebx
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.0040c262
test eax, eax
je 0x4019cb
push edi
mov byte [edi + eax], 0
call dword [sym.imp.MSVCR100.dll_atoi]
pop ecx
mov dword [esp + 0x28], eax
lea esi, [esp + 0x18]
call fcn.0040bdb4
mov byte [esp + 0x1b8], 2
mov eax, esi
push eax
call fcn.0040bc8a
xor ebx, ebx
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
push str._dmpw
push dword [eax + 4]
call dword [sym.imp.MSVCR100.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x401c38
mov eax, dword [sym.imp.MSVCR100.dll___argc]
cmp dword [eax], 4
jl 0x401c38
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1b8], 8
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
push dword [eax + 0xc]
lea esi, [esp + 0x7c]
call fcn.00402843
mov byte [esp + 0x1b8], 9
lea eax, [esp + 0x18]
push eax
mov ebx, esi
call fcn.004059fc
pop ecx
mov byte [esp + 0x1b8], 8
push 1
xor edi, edi
call fcn.00402865
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
sub eax, ebx
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 4
jb 0x401c25
push 0x28
pop ecx
mov esi, str.http:__softstat.kugou.com_brokenFile.aspx_version_lsflag_lshash_lsexe_ls
lea edi, [esp + 0x104]
rep movsd dword es:[edi], dword [esi]
push 8
lea eax, [ebx + 0x54]
pop esi
mov dword [esp + 0x3c], eax
cmp dword [eax + 0x14], esi
jb 0x401aad
mov edx, dword [eax]
jmp 0x401aaf
mov edx, eax
cmp dword [ebx + 0x4c], esi
jb 0x401ab9
mov ecx, dword [ebx + 0x38]
jmp 0x401abc
lea ecx, [ebx + 0x38]
lea eax, [ebx + 0x1c]
cmp dword [eax + 0x14], esi
jb 0x401ac6
mov eax, dword [eax]
cmp dword [ebx + 0x14], esi
jb 0x401acd
mov ebx, dword [ebx]
push edx
push ecx
push eax
lea eax, [esp + 0x110]
push ebx
push eax
lea esi, [esp + 0x8c]
call fcn.00405be3
add esp, 0x14
mov byte [esp + 0x1b8], 0xa
mov ebx, eax
lea eax, [esp + 0x94]
call fcn.00402388
mov byte [esp + 0x1b8], 8
push 1
xor edi, edi
call fcn.00402865
push str.kugou.ini
lea esi, [esp + 0x7c]
call fcn.00402843
mov byte [esp + 0x1b8], 0xb
lea ebx, [esp + 0xe8]
call fcn.0040c9f1
mov byte [esp + 0x1b8], 0xc
mov ecx, esi
push ecx
lea ecx, [esp + 0xd0]
push ecx
mov ecx, eax
call fcn.00402b19
mov byte [esp + 0x1b8], 0xd
push eax
lea esi, [esp + 0xb4]
call fcn.004023d1
mov byte [esp + 0x1b8], 0xf
xor ebx, ebx
inc ebx
push ebx
lea esi, [esp + 0xd0]
call fcn.00402865
mov byte [esp + 0x1b8], 0x10
push ebx
lea esi, [esp + 0xec]
call fcn.00402865
mov byte [esp + 0x1b8], 0x11
push ebx
lea esi, [esp + 0x7c]
call fcn.00402865
cmp dword [esp + 0xc4], 8
mov ecx, dword [esp + 0xb0]
jae 0x401bb7
lea ecx, [esp + 0xb0]
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0x14], 8
jb 0x401bc3
mov eax, dword [eax]
push ecx
push eax
push str.LastCrashExe
push str.Crash
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
push dword [eax + 8]
lea esi, [esp + 0x7c]
call fcn.00402843
mov byte [esp + 0x1b8], 0x12
lea eax, [esp + 0x94]
push eax
mov ecx, esi
call fcn.0040114a
pop ecx
mov byte [esp + 0x1b8], 0x11
push ebx
xor edi, edi
call fcn.00402865
mov byte [esp + 0x1b8], 8
push ebx
lea esi, [esp + 0xb4]
call fcn.00402865
mov byte [esp + 0x1b8], 2
lea esi, [esp + 0x18]
call fcn.00401e88
xor ebx, ebx
mov byte [esp + 0x1b8], 1
lea esi, [esp + 0x2c]
call fcn.00401e02
mov byte [esp + 0x1b8], bl
push 1
xor edi, edi
lea esi, [esp + 0x98]
call fcn.00402865
or dword [esp + 0x1b8], 0xffffffff
lea esi, [esp + 0x44]
call fcn.004051c6
mov eax, dword [esp + 0x28]
jmp 0x401c79
xor eax, eax
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0040cc2c
mov esp, ebp
pop ebp
ret 0x10