Function at 0x483d78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
call fcn.00404748
xor eax, eax
push ebp
push 0x483fb6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
cmp byte [ebp + 8], 0
je 0x483ddd
push 1
mov ecx, dword [ebp + 0xc]
mov dl, 1
mov eax, dword [0x41a7e0]
call fcn.0041f108
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0041ec74
jmp 0x483df4
push 0xffff
mov ecx, dword [ebp + 0xc]
mov dl, 1
mov eax, dword [0x41a7e0]
call fcn.0041f108
mov dword [ebp - 0x1c], eax
push 0
push 0x80000000
push 3
push 0
push 2
push 0x80000000
lea edx, [ebp - 0x24]
mov edi, ebx
and edi, 0xff
mov eax, edi
call fcn.00408c28
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x483fd4
call fcn.004045a4
mov eax, dword [ebp - 0x20]
call fcn.00404758
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x483e7c
push 0
push 0x80000000
push 3
push 0
push 3
push 0x80000000
lea edx, [ebp - 0x2c]
mov eax, edi
call fcn.00408c28
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x483fd4
call fcn.004045a4
mov eax, dword [ebp - 0x28]
call fcn.00404758
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x483f84
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x10], 0xffffffff
je 0x483f63
mov eax, esi
shl eax, 9
shr esi, 0x17
mov dword [ebp - 0x14], esi
push 0
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x483f5d
mov esi, dword [ebp - 4]
test esi, esi
jbe 0x483f67
cmp esi, 0x78
jbe 0x483ecf
mov ebx, 0x78
jmp 0x483ed1
mov ebx, esi
sub esi, ebx
mov eax, ebx
shl eax, 9
mov ebx, eax
mov eax, ebx
call fcn.00402798
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
mov eax, edi
xor ecx, ecx
mov edx, ebx
call fcn.00402e10
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x483f41
test esi, esi
jne 0x483f2a
mov eax, 0x200
sub eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x483f37
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x18]
call fcn.004027b8
jmp 0x483f4f
mov byte [ebp - 5], 0
mov eax, dword [ebp - 0x18]
call fcn.004027b8
jmp 0x483f67
test esi, esi
je 0x483f67
test esi, esi
ja 0x483ec3
jmp 0x483f67
mov byte [ebp - 5], 0
jmp 0x483f67
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483f8b
cmp dword [ebp - 0x10], 0xffffffff
je 0x483f83
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret