Function at 0x480dfe
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x49a5f5
call fcn.00497a30
sub esp, 0x9c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x1c], 0x10
jb 0x480e1c
mov eax, dword [ebx + 8]
jmp 0x480e1f
lea eax, [ebx + 8]
push eax
call fcn.00482ccb
test al, al
pop ecx
je 0x480e49
cmp dword [ebx + 0x1c], 0x10
jb 0x480e35
mov eax, dword [ebx + 8]
jmp 0x480e38
lea eax, [ebx + 8]
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.MSVCR71.dll__stati64]
test eax, eax
pop ecx
pop ecx
je 0x480e51
xor eax, eax
inc eax
jmp 0x48107a
mov eax, dword [ebp - 0x38]
or eax, dword [ebp - 0x34]
jne 0x480e66
mov eax, dword [ebp + 0x18]
and dword [eax], 0
xor eax, eax
jmp 0x48107a
push esi
push edi
lea ecx, [ebp - 0xa8]
call fcn.00483124
and dword [ebp - 4], 0
mov eax, dword [ebp - 0xa8]
push ebx
lea ecx, [ebp - 0xa8]
call dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0xa8]
push eax
lea edi, [ebp - 0x1c]
mov esi, 0x4bbc08
call fcn.0048158b
mov eax, dword [ebp - 0x1c]
cmp eax, dword [0x4bbc0c]
je 0x480eed
mov ecx, dword [eax + 0x4c]
cmp ecx, dword [ebp - 0x2c]
jne 0x480eed
mov ecx, dword [eax + 0x50]
cmp ecx, dword [ebp - 0x28]
jne 0x480eed
mov ecx, dword [eax + 0x58]
cmp ecx, dword [ebp - 0x38]
jne 0x480eed
mov ecx, dword [eax + 0x5c]
cmp ecx, dword [ebp - 0x34]
jne 0x480eed
mov eax, dword [eax + 0x48]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor ebx, ebx
jmp 0x481067
cmp dword [ebx + 0x1c], 0x10
jb 0x480ef8
mov eax, dword [ebx + 8]
jmp 0x480efb
lea eax, [ebx + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
mov dword [ebp - 0x1c], esi
jne 0x480f26
inc ebx
jmp 0x481067
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jl 0x480f48
mov eax, dword [ebp + 0x10]
jg 0x480f3c
cmp eax, ebx
jbe 0x480f48
sub eax, dword [ebp + 8]
sbb ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jl 0x480f79
jg 0x480f56
cmp dword [ebp + 8], ebx
jbe 0x480f79
mov ecx, eax
push ebx
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
sar ecx, 0x1f
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x480f79
push 2
pop ebx
jmp 0x481067
mov dword [ebp - 0x20], edi
mov edi, 0x8000
push edi
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0xc], eax
jmp 0x480fec
cmp dword [ebp - 0x18], ebx
je 0x480ff2
cmp dword [ebp - 0x10], ebx
jl 0x480fca
jg 0x480fac
cmp dword [ebp - 0x14], ebx
jbe 0x480fca
cmp ebx, dword [ebp - 0x10]
jl 0x480fc1
jg 0x480fbb
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jbe 0x480fc1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x14], eax
sbb dword [ebp - 0x10], ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.00482b87
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
je 0x480ff2
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x480f9b
push dword [ebp + 0xc]
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
jl 0x481017
jg 0x481010
cmp dword [ebp - 0x14], ebx
jbe 0x481017
push 3
jmp 0x480f73
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x18]
not eax
push ebx
mov dword [ebp - 0x70], eax
mov dword [ecx], eax
call dword [sym.imp.MSVCR71.dll_time]
add eax, 0xbb8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0xa8]
push eax
push 0x4bbc08
call fcn.00481270
push 8
pop ecx
lea esi, [ebp - 0x70]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.004833a3
pop edi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14