Function at 0x62eb4c70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
mov dword [esp + 0x2c], ebx
mov ebx, eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
mov eax, dword [eax + 0x58]
test eax, eax
mov ecx, eax
je 0x62eb4d11
lea eax, [ecx - 1]
mov ecx, dword [ebx + 0x54]
mov dword [ebx + 0x58], eax
movzx esi, byte [ecx]
add ecx, 1
mov dword [ebx + 0x54], ecx
test eax, eax
je 0x62eb4ec2
mov edi, dword [ebx + 0x54]
sub eax, 1
mov dword [ebx + 0x58], eax
movzx ecx, byte [edi]
add edi, 1
mov dword [ebx + 0x54], edi
shl ecx, 8
add esi, ecx
test eax, eax
je 0x62eb4d3d
mov edi, dword [ebx + 0x54]
sub eax, 1
mov dword [ebx + 0x58], eax
movzx ecx, byte [edi]
add edi, 1
mov dword [ebx + 0x54], edi
shl ecx, 0x10
add esi, ecx
test eax, eax
je 0x62eb4d59
mov ecx, dword [ebx + 0x54]
sub eax, 1
mov dword [ebx + 0x58], eax
movzx eax, byte [ecx]
add ecx, 1
mov dword [ebx + 0x54], ecx
shl eax, 0x18
add esi, eax
xor eax, eax
mov dword [edx], esi
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
ret
mov esi, dword [ebx + 0x4c]
test esi, esi
jne 0x62eb4e53
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x62eb4e5d
mov esi, 0xffffffff
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x62eb4eda
sub esi, 0x100
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
jne 0x62eb4e18
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x62eb4f58
sub esi, 0x10000
mov ebp, dword [ebx + 0x4c]
mov eax, 0xffffffff
test ebp, ebp
jne 0x62eb4cfd
mov edi, dword [ebx + 0x28]
test edi, edi
jne 0x62eb4cfd
mov eax, dword [ebx + 0x18]
lea edi, [ebx + 0x58]
mov dword [ebx + 0x58], 0
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x18], esi
mov esi, ebx
mov dword [esp + 0x1c], edx
mov ebx, eax
mov eax, dword [edi]
jmp 0x62eb4d9c
add eax, dword [edi]
cmp ebp, eax
mov dword [edi], eax
jbe 0x62eb4ff4
mov edx, ebp
sub edx, eax
lea eax, [ebx + eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0
jg 0x62eb4d90
mov ebx, esi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jne 0x62eb5033
mov dword [ebx + 0x28], 1
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x58]
test eax, eax
jne 0x62eb4ce2
mov eax, 0xffffffff
jmp 0x62eb4cfd
mov dword [esp + 0x14], edx
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.62eb3fe0
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x58]
mov ecx, 0xffff0000
jmp 0x62eb4cdc
mov dword [esp + 0x14], edx
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.62eb3fe0
mov eax, dword [ebx + 0x58]
mov edx, dword [esp + 0x14]
mov esi, 0xffffffff
jmp 0x62eb4ca4
lea edi, [ebx + 0x58]
mov esi, dword [ebx + 0x10]
mov ebp, dword [ebx + 0x18]
mov dword [ebx + 0x58], 0
mov dword [esp + 0x18], edx
jmp 0x62eb4e7f
add eax, dword [edi]
cmp esi, eax
mov dword [edi], eax
jbe 0x62eb4fd0
mov edx, esi
sub edx, eax
lea eax, [ebp + eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0
jg 0x62eb4e73
mov edx, dword [esp + 0x18]
jne 0x62eb4e25
mov dword [ebx + 0x28], 1
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebx + 0x18]
test ecx, ecx
mov dword [ebx + 0x54], eax
jne 0x62eb4c92
mov esi, 0xffffffff
mov ebp, dword [ebx + 0x4c]
test ebp, ebp
je 0x62eb4d2c
mov eax, dword [ebx + 0x58]
mov ecx, 0xffffff00
jmp 0x62eb4cc1
mov eax, dword [ebx + 0x18]
lea edi, [ebx + 0x58]
mov dword [ebx + 0x58], 0
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x18], esi
mov esi, ebx
mov dword [esp + 0x1c], edx
mov ebx, eax
mov eax, dword [edi]
jmp 0x62eb4f0c
add eax, dword [edi]
cmp ebp, eax
mov dword [edi], eax
jbe 0x62eb4fd9
mov edx, ebp
sub edx, eax
lea eax, [ebx + eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0
jg 0x62eb4f00
mov ebx, esi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jne 0x62eb5003
mov dword [ebx + 0x28], 1
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x62eb4d37
jmp 0x62eb4cac
mov eax, dword [ebx + 0x18]
lea edi, [ebx + 0x58]
mov dword [ebx + 0x58], 0
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x18], esi
mov esi, ebx
mov dword [esp + 0x1c], edx
mov ebx, eax
mov eax, dword [edi]
jmp 0x62eb4f80
add eax, dword [edi]
cmp ebp, eax
mov dword [edi], eax
jbe 0x62eb4fe8
mov edx, ebp
sub edx, eax
lea eax, [ebx + eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0
jg 0x62eb4f78
mov ebx, esi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jne 0x62eb4ded
mov dword [ebx + 0x28], 1
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x62eb4d53
jmp 0x62eb4cc7
mov edx, dword [esp + 0x18]
jmp 0x62eb4eac
mov ebx, esi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x62eb4f42
mov ebx, esi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x62eb4fb6
mov ebx, esi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x62eb4dd2
mov dword [esp + 0x14], edx
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.62eb3fe0
mov edx, dword [esp + 0x14]
jmp 0x62eb4ecd
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.62eb3fe0
or eax, 0xffffffff
jmp 0x62eb4cfd