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

Disassembly:
push 0x2c8
mov eax, 0x5dd22f
call fcn.00447fd9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2cc], eax
call fcn.0044b1c9
push eax
lea ecx, [ebp - 0x94]
call fcn.0044955e
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0044b1cf
mov ecx, eax
call fcn.00449ca7
test al, al
je 0x471d56
push dword [ebp - 0x2cc]
lea ecx, [ebp - 0x94]
call fcn.0044978d
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.0048d0ec
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c8], eax
cmp eax, 0xffffffff
jne 0x471d02
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00449699
jmp 0x471e48
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x471cee
push ebx
mov dword [ebp - 0x2d0], edi
call fcn.004482ea
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x2d0]
push eax
push ebx
push esi
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], ebx
je 0x471e35
push esi
call fcn.004482f3
pop ecx
jmp 0x471cee
call fcn.0044b1cf
push eax
lea ecx, [ebp - 0x94]
call fcn.00449770
call fcn.0044b292
test al, al
je 0x471d77
call fcn.0044b1d5
jmp 0x471d8e
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0048d0ec
push eax
call fcn.00460036
add esp, 0xc
mov dword [ebp - 0x2c8], eax
test eax, eax
je 0x471cee
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x2d4]
push ecx
push 1
push dword [ebp - 0x2cc]
push eax
call fcn.0045fa77
add esp, 0x14
test eax, eax
jne 0x471cee
mov ebx, dword [ebp - 0x98]
test ebx, ebx
je 0x471cee
push ebx
call fcn.004482ea
push 3
push ebx
mov esi, eax
push esi
push dword [ebp - 0x2d4]
push dword [ebp - 0x2c8]
call fcn.004603f6
add esp, 0x18
test eax, eax
je 0x471e20
cmp eax, 0x600
je 0x471e20
push esi
call fcn.004482f3
pop ecx
call fcn.0044b292
test al, al
jne 0x471cee
push dword [ebp - 0x2c8]
call fcn.0045f8d1
jmp 0x471d53
call fcn.0044b292
test al, al
jne 0x471e35
push dword [ebp - 0x2c8]
call fcn.0045f8d1
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00449699
test esi, esi
jne 0x471ec7
push edi
push 0x80
push 3
push edi
push 1
push connect
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2cc], eax
cmp eax, 0xffffffff
je 0x471ec3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x471ec3
push ebx
mov dword [ebp - 0x2c8], edi
call fcn.004482ea
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
push ebx
push esi
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], ebx
je 0x471ebf
push esi
call fcn.004482f3
pop ecx
mov esi, edi
test esi, esi
jne 0x471ec7
xor eax, eax
jmp 0x471f02
push 0x10
call fcn.00447f2a
pop ecx
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x471ee9
mov ecx, eax
call fcn.00405040
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, edi
push ebx
push esi
call fcn.004050f0
push 1
push esi
call fcn.004480dd
pop ecx
pop ecx
mov eax, edi
call fcn.00447f83
ret 4