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

Disassembly:
push 0x73c
mov eax, 0x5063f7
call fcn.004d4831
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.00483c82
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.00488382
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0048e2fb
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.00485618
push eax
lea ecx, [ebp - 0x94]
call fcn.0048e2fb
mov byte [ebp - 4], 2
call fcn.00485624
mov ecx, eax
call fcn.0048eb13
test al, al
je 0x49e219
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0048e56f
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.0048e533
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x49e1c3
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0048e422
jmp 0x49e3b0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x49e1af
push ebx
mov dword [ebp - 0x744], edi
call fcn.004d3b16
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x744]
push eax
push ebx
push esi
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x744], ebx
je 0x49e399
push esi
call fcn.004d3890
pop ecx
mov esi, edi
jmp 0x49e1af
call fcn.00485624
push eax
lea ecx, [ebp - 0x94]
call fcn.0048e56f
call fcn.0048588d
test al, al
je 0x49e240
call fcn.0048562a
mov dword [ebp - 0x73c], eax
jmp 0x49e2af
call fcn.00485630
push eax
lea ecx, [ebp - 0x220]
call fcn.0048e2fb
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0048e533
push eax
call fcn.0048a840
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.0048e533
push eax
call fcn.004923a3
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x49e29a
push eax
call fcn.004d3890
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0048e422
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x49e1af
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.0048e2fb
push 0x513c84
push 0x513c88
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0048ecd1
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0048e533
push eax
push dword [ebp - 0x73c]
call fcn.00491d71
add esp, 0x14
test eax, eax
je 0x49e326
lea ecx, [ebp - 0x118]
call fcn.0048e422
jmp 0x49e1af
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x49e316
push ebx
call fcn.004d3b16
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.004927f5
add esp, 0x14
test eax, eax
je 0x49e379
cmp eax, 0x600
je 0x49e379
push esi
call fcn.004d3890
pop ecx
mov esi, edi
call fcn.0048588d
test al, al
jne 0x49e316
push dword [ebp - 0x73c]
call fcn.00491b56
pop ecx
jmp 0x49e316
call fcn.0048588d
test al, al
jne 0x49e38e
push dword [ebp - 0x73c]
call fcn.00491b56
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0048e422
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0048e422
test esi, esi
jne 0x49e431
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x19c]
call fcn.0048e533
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x49e42d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x49e42d
push ebx
mov dword [ebp - 0x740], edi
call fcn.004d3b16
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x740]
push eax
push ebx
push esi
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x740], ebx
je 0x49e42d
push esi
call fcn.004d3890
pop ecx
jmp 0x49e443
test esi, esi
je 0x49e443
push ebx
push esi
call fcn.0049e094
push esi
mov edi, eax
call fcn.004d3890
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.0048e422
lea ecx, [ebp - 0x508]
call fcn.0048410e
mov eax, edi
call fcn.004d47ef
ret