Function at 0x40ef70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424f63
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x43300c]
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.0040f870
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x17c]
imul esi, dword [0x433374], 0x128
mov edx, str.Downloads_
add esi, dword [0x433378]
call fcn.00403520
lea edx, [esi + 4]
mov ecx, eax
call fcn.00403520
cmp byte [edi + 0x10], 1
jne 0x40f04c
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x174]
mov dword [0x43336c], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [0x433370], 0
call fcn.0040fa30
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 0x40f04c
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f042
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f042
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004235ae
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x174]
call fcn.0040fa30
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.0040d520
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40f0b3
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f0a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f0a9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004235ae
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 0x40f104
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 [0x433370]
add eax, dword [edi + 0xc]
mov dword [0x433370], eax
push 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x42c5e0]
mov eax, dword [0x43336c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x42c5e0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, dword [0x42c560]
cvttss2si esi, xmm1
push esi
push 0x402
push 0x3f3
push dword [0x433368]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, 0x64
jne 0x40f188
push str.File_is_loaded
call fcn.00419350
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 0x40f1f6
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0x9c]
cmp dword [eax], ecx
jne 0x40f1f6
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 0x40f20a
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.0040f7c0
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.00423570
mov esp, ebp
pop ebp
ret 4