Function at 0x417415
Capabilities:
Delete file

Disassembly:
mov eax, 0x4dc535
call fcn.004d1d50
sub esp, 0x10c
mov eax, dword [0x52e400]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, ebp
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x80], esi
call fcn.00415f74
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ebx
push str..xlbho
lea eax, [ebp - 0x58]
push edi
push eax
mov dword [ebp - 4], ebx
call fcn.00416cf1
add esp, 0xc
cmp dword [ebp - 0x50], ebx
je 0x41764a
mov ecx, esi
call fcn.004ac35d
push dword [ebp - 0x50]
mov ecx, esi
call fcn.00416e31
mov eax, dword [ebp - 0x54]
mov esi, dword [eax]
cmp esi, eax
je 0x41764a
push dword [ebp - 0x70]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.0044fced
add esp, 0xc
lea ecx, [ebp - 0x4c]
call fcn.00413264
push 2
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.0048d5d7
push 1
push 0x1b6
push 1
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [ebp - 0x118]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::constructor_char_const___int__int_]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.0048d9af
lea ecx, [ebp - 0x118]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::close_void_]
push str.stat_type
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0048d7e7
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0048d6eb
mov edi, eax
mov eax, dword [ebp - 0x78]
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x417550
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
jne 0x4175b4
push 0x4ec830
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0048d7e7
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0048d6eb
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x417590
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x4ef108
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0048d7e7
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0048d6eb
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x7c]
jmp 0x4175db
cmp edi, 1
jne 0x4175e9
push str.sock_download_times
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0048d7e7
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0048d6eb
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x4175e9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x6c]
push eax
call fcn.004172a3
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x417626
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [esi]
cmp esi, dword [ebp - 0x54]
jne 0x41748a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00416f90
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1da7
leave
ret