Function at 0x40e670
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d863
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x48b034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x18c]
call fcn.0040ef70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x17c]
imul esi, dword [0x48b39c], 0x128
mov edx, str.Downloads_
add esi, dword [0x48b3a0]
call fcn.00403520
lea edx, [esi + 4]
mov ecx, eax
call fcn.00403520
cmp byte [edi + 0x10], 1
jne 0x40e74c
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x174]
mov dword [0x48b394], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [0x48b398], 0
call fcn.0040f130
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40e74c
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e742
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e742
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0046bb99
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x174]
call fcn.0040f130
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0xdc]
cmovae eax, dword [ebp - 0x2c]
sub esp, 0xc
push eax
call fcn.0040cc20
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40e7b3
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e7a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e7a9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0046bb99
add esp, 8
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0xdc]
cdq
push edx
push eax
lea eax, [edi + 0x14]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0xd8]
call fcn.00403360
test eax, eax
jne 0x40e804
push eax
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xdc]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [0x48b398]
add eax, dword [edi + 0xc]
mov dword [0x48b398], eax
push 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x483e10]
mov eax, dword [0x48b394]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x483e10]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, dword [0x483d8c]
cvttss2si esi, xmm1
push esi
push 0x402
push 0x3f3
push dword [0x48b390]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, 0x64
jne 0x40e888
push str.File_is_loaded
call fcn.00418a70
add esp, 4
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe0], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x8c], 0
mov dword [ebp - 0xd8], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x40e8f6
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0x9c]
cmp dword [eax], ecx
jne 0x40e8f6
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xbc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xac]
mov dword [eax], edx
cmp byte [ebp - 0x90], 0
je 0x40e90a
lea ecx, [ebp - 0xd8]
call fcn.00403360
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xd4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x74]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x190], eax
lea ecx, [ebp - 0x174]
call fcn.0040eec0
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x124]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046bb5b
mov esp, ebp
pop ebp
ret 4