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

Disassembly:
push 0x73c
mov eax, 0x4f7f65
call fcn.004c7e92
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.00478224
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.0047c7fe
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00476b4f
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.00479ae6
push eax
lea ecx, [ebp - 0x94]
call fcn.00476b4f
mov byte [ebp - 4], 2
call fcn.00479aec
mov ecx, eax
call fcn.00477421
test al, al
je 0x49182b
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00476e17
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.00476ddb
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x4917d5
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00476c5b
jmp 0x4919c2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4917c1
push ebx
mov dword [ebp - 0x744], edi
call fcn.004c6dfb
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 0x4919ab
push esi
call fcn.004c6e04
pop ecx
mov esi, edi
jmp 0x4917c1
call fcn.00479aec
push eax
lea ecx, [ebp - 0x94]
call fcn.00476e17
call fcn.00479d55
test al, al
je 0x491852
call fcn.00479af2
mov dword [ebp - 0x73c], eax
jmp 0x4918c1
call fcn.00479af8
push eax
lea ecx, [ebp - 0x220]
call fcn.00476b4f
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00476ddb
push eax
call fcn.0047eb7b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.00476ddb
push eax
call fcn.004858c1
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x4918ac
push eax
call fcn.004c6e04
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00476c5b
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x4917c1
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.00476b4f
push 0x50c780
push 0x50c784
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.004775df
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00476ddb
push eax
push dword [ebp - 0x73c]
call fcn.0048528f
add esp, 0x14
test eax, eax
je 0x491938
lea ecx, [ebp - 0x118]
call fcn.00476c5b
jmp 0x4917c1
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x491928
push ebx
call fcn.004c6dfb
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.00485d13
add esp, 0x14
test eax, eax
je 0x49198b
cmp eax, 0x600
je 0x49198b
push esi
call fcn.004c6e04
pop ecx
mov esi, edi
call fcn.00479d55
test al, al
jne 0x491928
push dword [ebp - 0x73c]
call fcn.00485074
pop ecx
jmp 0x491928
call fcn.00479d55
test al, al
jne 0x4919a0
push dword [ebp - 0x73c]
call fcn.00485074
pop ecx
lea ecx, [ebp - 0x118]
call fcn.00476c5b
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00476c5b
test esi, esi
jne 0x491a43
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x19c]
call fcn.00476ddb
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x491a3f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x491a3f
push ebx
mov dword [ebp - 0x740], edi
call fcn.004c6dfb
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 0x491a3f
push esi
call fcn.004c6e04
pop ecx
jmp 0x491a55
test esi, esi
je 0x491a55
push ebx
push esi
call fcn.004916a6
push esi
mov edi, eax
call fcn.004c6e04
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.00476c5b
lea ecx, [ebp - 0x508]
call fcn.004786b0
mov eax, edi
call fcn.004c7e50
ret