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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a557
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
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 0x401dd1
xor ecx, ecx
cmp cx, word [eax]
je 0x401dd1
lea ecx, [ebp - 0x1b0]
call fcn.004086ec
call dword [sym.imp.infra.dll_void___cdecl_infra::InitializeInfra_void_]
push str.http:__121.9.201.163:8019
lea ecx, [ebp - 0xe0]
call fcn.00402dc0
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
xor ebx, ebx
mov dword [ebp - 0x154], ebx
call esi
cmp dword [eax], 3
jl 0x401d84
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
call ebx
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d82
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
call ebx
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 0x401972
push str._BugReport.aspx
lea ecx, [ebp - 0xe0]
call fcn.00402150
call ebx
lea ecx, [ebp - 0xf8]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.00402dc0
push 0
push 0
lea edx, [ebp - 0x164]
lea ecx, [ebp - 0xf8]
call fcn.004016c0
add esp, 8
lea ecx, [ebp - 0xf8]
mov edi, eax
call fcn.00402770
test edi, edi
je 0x401b91
lea ecx, [ebp - 0x150]
call fcn.00403100
lea ecx, [ebp - 0x150]
call fcn.004031d0
mov esi, dword [ebp - 0x164]
jmp 0x401b38
call ebx
push str._dmp
mov eax, dword [eax]
push dword [eax + 4]
call edi
add esp, 8
test eax, eax
jne 0x401b9e
call esi
cmp dword [eax], 4
jl 0x401b9e
push str._DmpReport.aspx
lea ecx, [ebp - 0xe0]
call fcn.00402150
call ebx
lea ecx, [ebp - 0xf8]
mov eax, dword [eax]
push dword [eax + 0xc]
call fcn.00402dc0
cmp dword [ebp - 0xe8], 0
jne 0x4019cd
mov byte [ebp - 0x141], 0
jmp 0x401aa4
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.infra.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_base::SysWideToUTF8_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
cmp dword [eax + 0x10], 0
jne 0x4019f6
mov byte [ebp - 0x141], 0
jmp 0x401a99
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x150], 0
push ecx
push eax
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
call dword [sym.imp.infra.dll_bool___cdecl_base::HexStringToBytes_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::vector_unsigned_char__class_std::allocator_unsigned_char____]
add esp, 8
test al, al
jne 0x401a3d
lea ecx, [ebp - 0x150]
call fcn.00401fc0
mov byte [ebp - 0x141], 0
jmp 0x401a99
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x150]
sub eax, ecx
cmp eax, 0x10
je 0x401a64
lea ecx, [ebp - 0x150]
call fcn.00401fc0
mov byte [ebp - 0x141], 0
jmp 0x401a99
mov eax, dword [ecx]
mov dword [ebp - 0x180], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x17c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x178], eax
mov eax, dword [ecx + 0xc]
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x174], eax
call fcn.00401fc0
mov byte [ebp - 0x141], 1
lea ecx, [ebp - 0x110]
call fcn.00402f20
lea ecx, [ebp - 0xf8]
call fcn.00402770
cmp byte [ebp - 0x141], 0
je 0x401b91
call ebx
lea ecx, [ebp - 0xf8]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.00402dc0
push 1
push 0x10
lea edx, [ebp - 0x164]
lea ecx, [ebp - 0xf8]
call fcn.004016c0
add esp, 8
lea ecx, [ebp - 0xf8]
mov edi, eax
call fcn.00402770
cmp edi, 0x10
jbe 0x401b91
mov esi, dword [ebp - 0x164]
lea eax, [ebp - 0x180]
mov edx, dword [ebp - 0x160]
push ecx
sub edx, esi
push eax
sub edx, edi
lea ecx, [esi + edi]
call fcn.00402f90
add esp, 8
lea ecx, [ebp - 0x150]
add edi, 0x10
call fcn.00403100
lea ecx, [ebp - 0x150]
call fcn.004031d0
cmp dword [ebp - 0xcc], 8
lea eax, [ebp - 0xe0]
push ecx
cmovae eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0x150]
push edi
push esi
push edi
push esi
push eax
call fcn.00403800
test eax, eax
je 0x401b75
push esi
mov byte [esi + eax], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [ebp - 0x154], eax
lea ecx, [ebp - 0x150]
call fcn.004032c0
lea ecx, [ebp - 0x150]
call fcn.00403140
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
call ebx
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
push str._dmpw
mov eax, dword [eax]
push dword [eax + 4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x401d6f
call esi
cmp dword [eax], 4
jl 0x401d6f
call ebx
push 0
push 1
sub esp, 8
mov esi, eax
mov ecx, esp
push 0x40b59c
call fcn.00402110
mov eax, dword [esi]
sub esp, 8
mov ecx, esp
push dword [eax + 0xc]
call fcn.00402110
lea eax, [ebp - 0x170]
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 - 0x16c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x170]
add esp, 0x1c
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 5
jb 0x401d64
mov eax, dword [ebp - 0x170]
lea edi, [ebp - 0xc8]
mov ecx, 0x2d
mov esi, 0x40b5a0
rep movsd dword es:[edi], dword [esi]
cmp dword [eax + 0x74], 8
lea edi, [eax + 0x60]
jb 0x401c45
mov edi, dword [edi]
cmp dword [eax + 0x5c], 8
lea ecx, [eax + 0x48]
jb 0x401c50
mov ecx, dword [ecx]
cmp dword [eax + 0x44], 8
lea edx, [eax + 0x30]
jb 0x401c5b
mov edx, dword [edx]
cmp dword [eax + 0x2c], 8
lea esi, [eax + 0x18]
jb 0x401c66
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x401c6e
mov eax, dword [eax]
push edi
push ecx
push edx
push esi
push eax
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 - 0xe0]
push eax
call fcn.004021a0
lea ecx, [ebp - 0x110]
call fcn.00402770
sub esp, 8
mov ecx, esp
push str.kugou.ini
call fcn.00402110
lea eax, [ebp - 0x110]
push eax
push ecx
lea ecx, [ebp - 0xf8]
call fcn.00407b7a
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.00402220
mov esi, dword [sym.imp.infra.dll_public:_void___thiscall_base::FilePath::destructor_void_]
lea ecx, [ebp - 0x110]
call esi
lea ecx, [ebp - 0xf8]
call esi
cmp dword [ebp - 0x114], 8
lea ecx, [ebp - 0x128]
mov eax, dword [ebp - 0x170]
cmovae ecx, dword [ebp - 0x128]
add eax, 0x48
cmp dword [eax + 0x14], 8
jb 0x401d15
mov eax, dword [eax]
push ecx
push eax
push str.LastCrashExe
push str.Crash
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call ebx
lea ecx, [ebp - 0x140]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.00402dc0
push ecx
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0xe0]
call fcn.004011e0
add esp, 4
lea ecx, [ebp - 0x140]
call fcn.00402770
lea ecx, [ebp - 0x128]
call fcn.00402770
lea ecx, [ebp - 0x170]
call fcn.00402080
lea ecx, [ebp - 0x164]
call fcn.00401fc0
mov ebx, dword [ebp - 0x154]
jmp 0x401d84
xor ebx, ebx
mov eax, dword [ebp - 0xcc]
cmp eax, 8
jb 0x401d9c
inc eax
push eax
push dword [ebp - 0xe0]
call fcn.00402bf0
xor eax, eax
mov dword [ebp - 0xcc], 7
mov dword [ebp - 0xd0], 0
mov word [ebp - 0xe0], ax
mov dword [ebp - 4], eax
call dword [sym.imp.infra.dll_void___cdecl_infra::UninitializeInfra_void_]
lea ecx, [ebp - 0x1b0]
call fcn.00408735
mov eax, ebx
jmp 0x401dd3
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.00409425
mov esp, ebp
pop ebp
ret 0x10