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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a8d7
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x411024]
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 eax, dword [ebp + 0x10]
test eax, eax
je 0x401d7a
xor ecx, ecx
cmp cx, word [eax]
je 0x401d7a
lea ecx, [ebp - 0x190]
call fcn.004089d2
call dword [sym.imp.infra.dll_void___cdecl_infra::InitializeInfra_void_]
push str.http:__121.9.201.163:8019
lea ecx, [ebp - 0xf8]
call fcn.00402d60
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
xor esi, esi
mov dword [ebp - 0x148], esi
call ebx
cmp dword [eax], 3
jl 0x401d2d
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
call esi
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d2b
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
call esi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push str._stack
mov eax, dword [eax]
push dword [eax + 4]
call edi
add esp, 8
test eax, eax
jne 0x4019f7
push str._BugReport.aspx
lea ecx, [ebp - 0xf8]
call fcn.004020f0
call esi
lea ecx, [ebp - 0xe0]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.00402d60
push 0
push 0
lea edx, [ebp - 0x154]
lea ecx, [ebp - 0xe0]
call fcn.004016d0
add esp, 8
mov dword [ebp - 0x144], eax
lea ecx, [ebp - 0xe0]
call fcn.00402710
cmp dword [ebp - 0x144], 0
jbe 0x4019e5
lea ecx, [ebp - 0xd4]
call fcn.004030a0
lea ecx, [ebp - 0xd4]
call fcn.00403170
mov edi, dword [ebp - 0x154]
lea eax, [ebp - 0xf8]
cmp dword [ebp - 0xe4], 8
push ecx
mov ecx, dword [ebp - 0x144]
cmovae eax, dword [ebp - 0xf8]
push ecx
push edi
push ecx
push edi
push eax
lea ecx, [ebp - 0xd4]
call fcn.004037a0
test eax, eax
je 0x4019c9
push edi
mov byte [edi + eax], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [ebp - 0x148], eax
lea ecx, [ebp - 0xd4]
call fcn.00403260
lea ecx, [ebp - 0xd4]
call fcn.004030e0
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
call esi
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x401b4b
call esi
push str._dmp
mov eax, dword [eax]
push dword [eax + 4]
call edi
add esp, 8
test eax, eax
jne 0x401b4b
call ebx
cmp dword [eax], 4
jl 0x401b4b
push str._DmpReport.aspx
lea ecx, [ebp - 0xf8]
call fcn.004020f0
call esi
lea ecx, [ebp - 0x110]
mov eax, dword [eax]
push dword [eax + 0xc]
call fcn.00402d60
lea edx, [ebp - 0xd8]
lea ecx, [ebp - 0x110]
call fcn.00407c3b
lea ecx, [ebp - 0x110]
mov bl, al
call fcn.00402710
test bl, bl
je 0x401b38
call esi
lea ecx, [ebp - 0x110]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.00402d60
push 1
push 0x10
lea edx, [ebp - 0x154]
lea ecx, [ebp - 0x110]
call fcn.004016d0
add esp, 8
lea ecx, [ebp - 0x110]
mov ebx, eax
call fcn.00402710
cmp ebx, 0x10
jbe 0x401b38
mov edi, dword [ebp - 0x154]
lea eax, [ebp - 0xd8]
mov edx, dword [ebp - 0x150]
push ecx
sub edx, edi
push eax
sub edx, ebx
lea ecx, [edi + ebx]
call fcn.00402f30
add esp, 8
lea ecx, [ebp - 0xd4]
add ebx, 0x10
call fcn.004030a0
lea ecx, [ebp - 0xd4]
call fcn.00403170
cmp dword [ebp - 0xe4], 8
lea eax, [ebp - 0xf8]
push ecx
cmovae eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0xd4]
push ebx
push edi
push ebx
push edi
push eax
call fcn.004037a0
test eax, eax
je 0x401b1c
push edi
mov byte [edi + eax], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [ebp - 0x148], eax
lea ecx, [ebp - 0xd4]
call fcn.00403260
lea ecx, [ebp - 0xd4]
call fcn.004030e0
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
call esi
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
call esi
push str._dmpw
mov eax, dword [eax]
push dword [eax + 4]
call edi
add esp, 8
test eax, eax
jne 0x401d18
call ebx
cmp dword [eax], 4
jl 0x401d18
call esi
push 0
push 1
sub esp, 8
mov esi, eax
mov ecx, esp
push 0x40b5b8
call fcn.004020b0
mov eax, dword [esi]
sub esp, 8
mov ecx, esp
push dword [eax + 0xc]
call fcn.004020b0
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.infra.dll__SplitString_base__YA_AV__vector_V__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__V__allocator_V]
mov ecx, dword [ebp - 0x15c]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp - 0x160]
add esp, 0x1c
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 5
jb 0x401d0d
mov ecx, 0x2d
lea edi, [ebp - 0xc8]
mov esi, str.http:__softstat.kugou.com_brokenFile.aspx_version_lsflag_lshash_lsexe_lserror_ls
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0x74], 8
lea esi, [ebx + 0x60]
jb 0x401bea
mov esi, dword [esi]
cmp dword [ebx + 0x5c], 8
lea eax, [ebx + 0x48]
jb 0x401bf5
mov eax, dword [eax]
cmp dword [ebx + 0x44], 8
lea ecx, [ebx + 0x30]
jb 0x401c00
mov ecx, dword [ecx]
cmp dword [ebx + 0x2c], 8
lea edx, [ebx + 0x18]
jb 0x401c0b
mov edx, dword [edx]
cmp dword [ebx + 0x14], 8
jb 0x401c13
mov ebx, dword [ebx]
push esi
push eax
push ecx
push edx
push ebx
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.infra.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_base::StringPrintf_wchar_t_const__]
add esp, 0x1c
lea ecx, [ebp - 0xf8]
push eax
call fcn.00402140
lea ecx, [ebp - 0x110]
call fcn.00402710
sub esp, 8
mov ecx, esp
push str.kugou.ini
call fcn.004020b0
lea eax, [ebp - 0x110]
push eax
push ecx
lea ecx, [ebp - 0xe0]
call fcn.00407e60
add esp, 4
mov ecx, eax
call dword [sym.imp.infra.dll_public:_class_base::FilePath___thiscall_base::FilePath::Append_class_base::BasicStringPiece_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____]
push eax
lea ecx, [ebp - 0x128]
call fcn.004021c0
mov esi, dword [sym.imp.infra.dll_public:_void___thiscall_base::FilePath::destructor_void_]
lea ecx, [ebp - 0x110]
call esi
lea ecx, [ebp - 0xe0]
call esi
cmp dword [ebp - 0x114], 8
lea ecx, [ebp - 0x128]
mov eax, dword [ebp - 0x160]
cmovae ecx, dword [ebp - 0x128]
add eax, 0x48
cmp dword [eax + 0x14], 8
jb 0x401cba
mov eax, dword [eax]
push ecx
push eax
push str.LastCrashExe
push str.Crash
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
lea ecx, [ebp - 0x140]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.00402d60
push ecx
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0xf8]
call fcn.004011f0
add esp, 4
lea ecx, [ebp - 0x140]
call fcn.00402710
lea ecx, [ebp - 0x128]
call fcn.00402710
lea ecx, [ebp - 0x160]
call fcn.00402020
lea ecx, [ebp - 0x154]
call fcn.00401f60
mov esi, dword [ebp - 0x148]
jmp 0x401d2d
xor esi, esi
mov eax, dword [ebp - 0xe4]
cmp eax, 8
jb 0x401d45
inc eax
push eax
push dword [ebp - 0xf8]
call fcn.00402b90
xor eax, eax
mov dword [ebp - 0xe4], 7
mov dword [ebp - 0xe8], 0
mov word [ebp - 0xf8], ax
mov dword [ebp - 4], eax
call dword [sym.imp.infra.dll_void___cdecl_infra::UninitializeInfra_void_]
lea ecx, [ebp - 0x190]
call fcn.00408a1b
mov eax, esi
jmp 0x401d7c
xor eax, eax
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.004097bf
mov esp, ebp
pop ebp
ret 0x10