Function at 0x40b610
Capabilities:
Clear file content
Delete file
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x478
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push ebp
mov ebp, dword [esp + 0x484]
push esi
push edi
mov edi, ecx
push edi
push 0x448b58
xor esi, esi
lea eax, [esp + 0x78]
push str._s_s.url
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call fcn.0041fa79
add esp, 0x10
push 0x80
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp ebp, esi
je 0x40b8fa
cmp byte [ebp], 0
je 0x40b8fa
push esi
push esi
push 3
push esi
push 3
push closesocket
lea edx, [esp + 0x88]
push edx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40b724
cmp esi, 0xffffffff
je 0x40b724
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea eax, [ebp + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40b70d
push 0
lea ecx, [esp + 0x2c]
push ecx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b6fd
cmp ebp, dword [esp + 0x28]
jne 0x40b6fd
mov edx, dword [esp + 0x20]
push edx
push edi
call fcn.0041fd70
add esp, 8
test eax, eax
setne bl
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x40b905
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
push 0x4344e0
push 1
push 0
push 0x4344d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40b83a
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x434510
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
jl 0x40b826
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x4344c0
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
jl 0x40b81a
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 0
push ebp
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edi
push eax
call edx
mov esi, eax
test esi, esi
jl 0x40b80e
push 0x20a
lea eax, [esp + 0x274]
push 0
push eax
call fcn.004249d0
lea eax, [esp + 0x7c]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x40b7d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b7d0
push 0x105
lea ecx, [esp + 0x274]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x7c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x274]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jge 0x40b8ee
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40b86c
cmp esi, 0xffffffff
je 0x40b86c
mov dword [esp + 0x1c], 0
jmp 0x40b87a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x40b8ee
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x38]
push str._llx
push edx
call fcn.0041fa79
lea eax, [esp + 0x40]
push eax
push ebp
lea ecx, [esp + 0x88]
push str._InternetShortcut__r_nURL_s_r_nModified_s_r_n
push ecx
call fcn.0041fa79
lea eax, [esp + 0x90]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b8c3
sub eax, edx
push 0
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x1c]
jmp 0x40b907
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041f826
add esp, 0x478
ret