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

Disassembly:
push 0xfc
mov eax, 0x48442c
call fcn.00468d31
push 0x39c
push 0x4aad28
push 0x4c7d78
push dword [0x4c28ac]
lea eax, [ebp - 0xf8]
mov esi, ecx
push eax
mov dword [ebp - 0x18], esi
call fcn.0041f145
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x108], ebx
call fcn.004186d0
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xa4]
sub eax, ebx
je 0x45e735
dec eax
je 0x45e72d
dec eax
je 0x45e725
dec eax
jne 0x45e73f
lea edi, [esi + 0xf4]
jmp 0x45e73b
lea edi, [esi + 0xe4]
jmp 0x45e73b
lea edi, [esi + 0xd4]
jmp 0x45e73b
lea edi, [esi + 0xc4]
cmp edi, ebx
jne 0x45e761
mov byte [ebp - 4], bl
lea esi, [ebp - 0x34]
call fcn.0040c150
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.0041f230
xor al, al
call fcn.00468db4
ret
lea eax, [esi + 0xa8]
push eax
lea ebx, [ebp - 0x104]
mov eax, edi
call fcn.0045f125
mov ecx, dword [ebp - 0x104]
cmp ecx, dword [edi + 4]
je 0x45e796
lea eax, [ecx + 0xc]
lea ecx, [esi + 0xa8]
call fcn.00407850
test al, al
jne 0x45e796
mov eax, ebx
jmp 0x45e7a5
mov eax, dword [edi + 4]
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x100]
mov ebx, dword [eax]
mov edi, dword [edi + 4]
cmp ebx, edi
je 0x45e7ff
mov eax, dword [ebx + 0x28]
mov edx, dword [eax]
push 0
add esi, 0x1ec
lea eax, [ebp - 0x50]
push esi
lea edx, [edx + 8]
push eax
call fcn.00424121
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00407490
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040c150
cmp dword [ebx + 0x2c], 1
jbe 0x45e850
lea edi, [ebx + 0x28]
mov eax, dword [edi]
push dword [eax]
lea ebx, [ebp - 0x104]
call fcn.00411720
jmp 0x45e850
lea eax, [ebp - 0x6c]
push eax
lea ecx, [esi + 0xa8]
call fcn.00424574
pop ecx
push 0
add esi, 0x1ec
lea ecx, [ebp - 0x50]
push esi
push ecx
mov edx, eax
mov byte [ebp - 4], 3
call fcn.00424121
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00407490
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.0040c150
lea esi, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0040c150
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x45e85c
lea eax, [ebp - 0x34]
push eax
push str.Attempting_to_open_file_:__s
push 0x3c1
push 0x200
lea esi, [ebp - 0xf8]
call fcn.0041f441
mov eax, dword [ebp - 0x34]
add esp, 0x10
cmp dword [ebp - 0x20], 8
jae 0x45e886
lea eax, [ebp - 0x34]
xor edi, edi
push edi
mov esi, 0x80
push esi
push 3
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push eax
mov dword [ebp - 0x100], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x100], 0xffffffff
mov dword [ebp - 0x104], eax
je 0x45ea99
cmp eax, edi
jbe 0x45ea99
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x45e8df
push eax
call fcn.00463bcc
and dword [ebx + 0x188], edi
pop ecx
mov esi, str.HTTP_
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
push edi
lea eax, [ebp - 0x108]
push eax
push 5
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x100]
mov byte [ebp - 0xf9], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push edi
push edi
push dword [ebp - 0x100]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x108], 5
jne 0x45e943
push 5
lea eax, [ebp - 0x18]
push str.HTTP_
push eax
call fcn.00478808
add esp, 0xc
test eax, eax
jne 0x45e943
mov byte [ebp - 0xf9], 1
cmp byte [ebx + 0x1a0], 0
jne 0x45e9f2
cmp byte [ebp - 0xf9], 0
jne 0x45e9f2
mov edi, dword [ebp - 0x104]
push edi
mov esi, ebx
call fcn.0045eabb
mov eax, dword [ebx + 0x17c]
add eax, edi
push eax
push str.m_ulResponseSize___d
push 0x3dd
push 0x200
lea esi, [ebp - 0xf8]
mov dword [ebx + 0x18c], eax
call fcn.0041f441
push dword [ebx + 0x18c]
call fcn.004619f1
add esp, 0x14
mov dword [ebx + 0x188], eax
test eax, eax
je 0x45e9dd
mov edx, dword [ebx + 0x17c]
lea ecx, [ebx + 0x16c]
cmp dword [ecx + 0x14], 0x10
jb 0x45e9c0
mov ecx, dword [ecx]
push edx
push ecx
push eax
call fcn.00466130
mov eax, dword [ebx + 0x17c]
mov ebx, dword [ebx + 0x188]
add esp, 0xc
add eax, ebx
xor edi, edi
jmp 0x45ea31
push dword [ebp - 0x100]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
jmp 0x45e742
mov esi, dword [ebp - 0x104]
push esi
call fcn.004619f1
pop ecx
push esi
push str.m_ulResponseSize___d
mov dword [ebx + 0x18c], esi
push 0x3f1
push 0x200
lea esi, [ebp - 0xf8]
mov dword [ebx + 0x188], eax
call fcn.0041f441
mov ebx, dword [ebx + 0x188]
add esp, 0x10
mov eax, ebx
cmp ebx, edi
je 0x45ea69
mov esi, dword [ebp - 0x104]
push edi
lea ecx, [ebp - 0x108]
push ecx
push esi
push eax
push dword [ebp - 0x100]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x100]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x108], esi
jne 0x45ea75
mov bl, 1
jmp 0x45ea77
push dword [ebp - 0x100]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0040c150
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.0041f230
mov al, bl
jmp 0x45e75b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_loading_file__GetLastError____0x_x
push 0x405
push esi
lea esi, [ebp - 0xf8]
call fcn.0041f441
add esp, 0x10
jmp 0x45ea75