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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ae45
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x459394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push accept
push 0x45b630
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4019fa
lea ecx, [ebp - 0x38]
call fcn.00434411
mov dword [ebp - 4], ebx
mov edi, 0x24
mov eax, 0x455794
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x38], vtable.CDownloadInfo::CDownloadInfoException.0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
call fcn.00402070
push 0x457098
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.0043943b
lea ecx, [ebp - 0x78]
xor eax, eax
push ecx
push esi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
cmp dword [ebp - 0x74], ebx
jle 0x401a5d
lea ecx, [ebp - 0x38]
call fcn.00434411
mov dword [ebp - 4], 1
mov edi, 0x24
mov eax, 0x455794
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x38], vtable.CDownloadInfo::CDownloadInfoException.0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
call fcn.00402070
push 0x457098
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.0043943b
mov eax, dword [ebp - 0x78]
inc eax
push eax
call fcn.004343f7
mov edx, dword [ebp - 0x78]
add esp, 4
push ebx
lea ecx, [ebp - 0x80]
push ecx
push edx
push eax
push esi
mov dword [edi], eax
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x401a98
lea ecx, [ebp - 0x38]
call fcn.00434411
mov dword [ebp - 4], 2
jmp 0x4019be
mov ecx, dword [edi]
mov edx, dword [ebp - 0x80]
push esi
mov byte [edx + ecx], bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x1e8]
call fcn.00406ca0
mov dword [ebp - 4], 3
mov eax, dword [edi]
lea ecx, [ebp - 0x1e8]
call fcn.00406f80
test eax, eax
je 0x401ae1
lea eax, [ebp - 0x38]
push eax
call fcn.004017e0
push 0x457098
lea ecx, [ebp - 0x38]
push ecx
jmp 0x4019f5
push str.item
lea eax, [ebp - 0x1e8]
call fcn.00405a50
mov esi, eax
cmp esi, ebx
je 0x401d11
push 0x4557c4
call fcn.00405a50
mov ebx, eax
push str.name
mov eax, esi
call fcn.00405a50
mov dword [ebp - 0x6c], eax
push str.version
mov eax, esi
call fcn.00405a50
mov dword [ebp - 0x84], eax
push str.link32
mov eax, esi
call fcn.00405a50
mov dword [ebp - 0x7c], eax
push str.size32
mov eax, esi
call fcn.00405a50
mov dword [ebp - 0x70], eax
push str.link64
mov eax, esi
call fcn.00405a50
mov dword [ebp - 0x64], eax
push str.size64
mov eax, esi
call fcn.00405a50
mov dword [ebp - 0x68], eax
push str.toolbar
mov eax, esi
call fcn.00405a50
mov dword [ebp - 0x88], eax
test ebx, ebx
je 0x401cfa
cmp dword [ebp - 0x6c], 0
je 0x401cfa
test eax, eax
je 0x401cfa
mov esi, ebx
call fcn.00406640
test eax, eax
je 0x401cfa
mov esi, dword [ebp - 0x6c]
call fcn.00406640
test eax, eax
je 0x401cfa
mov esi, dword [ebp - 0x88]
call fcn.00406640
test eax, eax
je 0x401cfa
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x401be2
call fcn.00406640
test eax, eax
je 0x401be2
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x401be2
call fcn.00406640
test eax, eax
jne 0x401c12
mov esi, dword [ebp - 0x64]
test esi, esi
je 0x401cfa
call fcn.00406640
test eax, eax
je 0x401cfa
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x401cfa
call fcn.00406640
test eax, eax
je 0x401cfa
mov esi, ebx
call fcn.00406640
lea edx, [edi + 4]
push edx
call fcn.00401e80
mov esi, dword [ebp - 0x6c]
call fcn.00406640
lea ecx, [edi + 0x20]
push ecx
call fcn.00401e80
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x401c4d
call fcn.00406640
test eax, eax
je 0x401c4d
call fcn.00406640
jmp 0x401c52
mov eax, 0x455800
lea ebx, [edi + 0x3c]
push ebx
call fcn.00401e80
mov esi, dword [ebp - 0x64]
test esi, esi
je 0x401c74
call fcn.00406640
test eax, eax
je 0x401c74
call fcn.00407660
test eax, eax
jne 0x401ca3
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x401ca0
call fcn.00406640
test eax, eax
je 0x401ca0
call fcn.00406640
lea ecx, [edi + 0x58]
push ecx
call fcn.00401e80
mov esi, dword [ebp - 0x70]
add edi, 0x74
push edi
call fcn.00406670
jmp 0x401ccb
mov esi, dword [ebp - 0x64]
call fcn.00406640
lea edx, [edi + 0x58]
push edx
call fcn.00401e80
mov esi, dword [ebp - 0x68]
add edi, 0x74
push edi
call fcn.00406670
push 9
mov eax, str.__64_bit_
mov ecx, ebx
call fcn.00401f90
lea eax, [ebp - 0x1e8]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.00406de0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434402
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x38]
push ecx
call fcn.004017e0
push 0x457098
lea edx, [ebp - 0x38]
push edx
jmp 0x4019f5
lea eax, [ebp - 0x60]
push eax
call fcn.004017e0
push 0x457098
lea ecx, [ebp - 0x60]
push ecx
jmp 0x4019f5