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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd80
mov eax, 0x4e7f9c
push ebx
push esi
push edi
call fcn.0049c448
push 0
push 0x80
push 3
push 0
push 3
push closesocket
mov eax, dword [ebp + 0xc]
xor esi, esi
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test ebx, ebx
jne 0x4bfa46
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4bfe81
lea ecx, [ebp - 0x48]
push ecx
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov edx, dword [ebp - 0x48]
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push eax
call fcn.00413004
add esp, 0xc
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x70], 0
jne 0x4bfa79
cmp dword [ebp - 0x74], 4
jae 0x4bfa92
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4bfe81
lea ecx, [ebp - 0x44]
push 0
push ecx
lea eax, [ebp - 0x75]
push 1
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x44]
xor edx, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
movsx ecx, byte [ebp - 0x75]
cmp ecx, 2
je 0x4bfacf
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4bfe81
lea ecx, [ebp - 0x44]
push 0
push ecx
lea eax, [ebp - 0x75]
push 1
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x44]
xor edx, edx
add dword [ebp - 0x54], eax
adc dword [ebp - 0x50], edx
movsx eax, byte [ebp - 0x75]
cmp eax, 4
jne 0x4bfaf9
mov edi, eax
jmp 0x4bfb10
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4bfe81
lea ecx, [ebp - 0x44]
push 0
push ecx
lea eax, [ebp - 0x75]
push 1
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x44]
xor edx, edx
add dword [ebp - 0x54], eax
adc dword [ebp - 0x50], edx
movsx eax, byte [ebp - 0x75]
cmp eax, 8
jne 0x4bfb3b
mov dword [ebp - 0x38], eax
jmp 0x4bfb52
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4bfe81
push esi
push edi
mov esi, 0x4e7ee4
lea edi, [ebp - 0x17c]
mov eax, edi
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, edi
cdq
add eax, dword [ebp - 0x54]
adc edx, dword [ebp - 0x50]
cmp edx, dword [ebp - 0x70]
jne 0x4bfb7c
cmp eax, dword [ebp - 0x74]
jb 0x4bfb95
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4bfe81
push 0
lea ecx, [ebp - 0x44]
push ecx
push edi
lea eax, [ebp - 0x3c]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x44]
xor edx, edx
add dword [ebp - 0x54], eax
adc dword [ebp - 0x50], edx
cmp dword [ebp - 0x3c], 0x104
jge 0x4bfbce
mov eax, dword [ebp - 0x3c]
cdq
add eax, dword [ebp - 0x54]
adc edx, dword [ebp - 0x50]
cmp edx, dword [ebp - 0x70]
jne 0x4bfbcc
cmp eax, dword [ebp - 0x74]
jb 0x4bfbe5
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4bfe81
lea ecx, [ebp - 0x44]
push 0
push ecx
lea edx, [ebp - 0x280]
mov eax, dword [ebp - 0x3c]
push eax
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x44]
xor edx, edx
add dword [ebp - 0x54], eax
adc dword [ebp - 0x50], edx
lea edx, [ebp - 0x280]
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x17c]
mov byte [ebp + ecx - 0x280], 0
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4bfc3a
test cl, cl
je 0x4bfc53
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4bfc3a
add eax, 2
add edx, 2
test cl, cl
jne 0x4bfc1e
je 0x4bfc53
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4bfe81
mov eax, dword [ebp - 0x38]
cdq
add eax, dword [ebp - 0x54]
adc edx, dword [ebp - 0x50]
push edx
push eax
mov eax, edi
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, dword [ebp - 0x70]
jne 0x4bfc74
cmp eax, dword [ebp - 0x74]
jb 0x4bfc8d
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4bfe81
lea ecx, [ebp - 0x44]
push 0
push ecx
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x38]
push eax
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
push 0
lea ecx, [ebp - 0x44]
push ecx
push edi
lea eax, [ebp - 0x3c]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
mov eax, edi
cdq
add eax, dword [ebp - 0x6c]
adc edx, dword [ebp - 0x68]
cmp edx, dword [ebp - 0x70]
jne 0x4bfcc3
cmp eax, dword [ebp - 0x74]
jb 0x4bfcdc
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4bfe81
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x48]
push ecx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push eax
call fcn.0041303c
add esp, 0x14
lea edx, [ebp - 0x48]
push 0
push edx
mov ecx, dword [ebp - 0x4c]
push ecx
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [ebp - 0x44]
push eax
push edi
lea edx, [ebp - 0x40]
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
mov eax, edi
cdq
add eax, dword [ebp - 0x6c]
adc edx, dword [ebp - 0x68]
push edx
push eax
mov eax, dword [ebp - 0x40]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, dword [ebp - 0x70]
jne 0x4bfd3a
cmp eax, dword [ebp - 0x74]
jbe 0x4bfd53
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4bfe81
push 0x10
call fcn.0049b6f8
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4bfd7d
mov word [ebp - 0x18], 0x14
mov edx, dword [ebp - 4]
push edx
call fcn.00414704
pop ecx
mov word [ebp - 0x18], 8
mov esi, dword [ebp - 4]
jmp 0x4bfd80
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
push eax
call fcn.0049b898
pop ecx
mov dword [ebp - 0x2c], eax
push 0
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp - 0x40]
push ecx
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x2c]
push edx
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push edx
call fcn.0041427c
add esp, 0xc
mov ecx, dword [ebp - 0x40]
push ecx
mov eax, dword [ebp - 0x2c]
push eax
push esi
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
push ecx
call fcn.00414108
add esp, 0x10
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b6d4
pop ecx
push ebx
call sub.KERNEL32.DLL_CloseHandle
push esi
call fcn.00414b4c
pop ecx
cmp eax, dword [ebp - 0x3c]
jne 0x4bfe68
xor ebx, ebx
cmp ebx, dword [ebp - 0x3c]
jge 0x4bfe75
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x30]
push edx
push ebx
push esi
call fcn.00414a0c
add esp, 0x10
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x64]
push ecx
push eax
push edx
lea ecx, [ebp - 0x5c]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004bf964
add esp, 0x14
test al, al
je 0x4bfe56
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x68]
jne 0x4bfe35
cmp eax, dword [ebp - 0x6c]
ja 0x4bfe47
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x68]
jne 0x4bfe45
cmp eax, dword [ebp - 0x6c]
jb 0x4bfe56
push 3
push esi
call fcn.00414cd8
add esp, 8
xor esi, esi
jmp 0x4bfe75
mov eax, dword [ebp - 0x30]
push eax
call fcn.0049b6d4
pop ecx
inc ebx
cmp ebx, dword [ebp - 0x3c]
jl 0x4bfdf5
jmp 0x4bfe75
push 3
push esi
call fcn.00414cd8
add esp, 8
xor esi, esi
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret