Function at 0x62771c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
lea ebx, [ebp - 0x10]
xor eax, eax
push ebp
push 0x627a77
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0064d630
mov dword [ebp - 0x24], eax
push 0
lea edx, [ebp - 0x44]
mov eax, 0x14
call fcn.006216fc
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
mov edx, 0x627a8c
call fcn.00621f70
push 0
lea edx, [ebp - 0x44]
mov eax, 0x1c
call fcn.006216fc
lea eax, [ebp - 0x44]
mov edx, 0x627a98
call fcn.00403ab4
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
mov edx, 0x627a8c
call fcn.00621f70
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0x24]
dec esi
test esi, esi
jl 0x62790c
inc esi
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x18]
mov ecx, dword [ebp - 0x30]
mov edx, dword [edx + ecx*4]
call fcn.004038bc
mov ecx, 1
mov edx, 0x80000000
mov eax, dword [ebp - 0x20]
call fcn.00658f04
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 4]
push eax
push 0xc
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x627816
cmp word [ebx], 0x100
jne 0x6277fb
cmp word [ebx + 2], 0
je 0x62780a
cmp word [ebx], 0x544f
jne 0x627816
cmp word [ebx + 2], 0x4f54
jne 0x627816
push ebp
call fcn.006273c4
pop ecx
jmp 0x6278f9
mov edi, ebx
cmp dword [edi], 0x66637474
jne 0x6278f9
mov eax, dword [edi + 8]
call fcn.00627398
dec eax
shl eax, 2
add eax, 0x10
mov edi, eax
mov eax, edi
call fcn.00401e58
mov dword [ebp - 0x28], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x6278f1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
call fcn.00627398
dec eax
mov edx, dword [ebp - 0x40]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x40]
mov edi, dword [eax + 8]
test edi, edi
jl 0x6278f1
inc edi
mov dword [ebp - 0x34], 0
push 0
push 0
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x34]
mov eax, dword [eax + edx*4 + 0xc]
call fcn.00627398
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push 0xc
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x6278eb
cmp word [ebx], 0x100
jne 0x6278d5
cmp word [ebx + 2], 0
je 0x6278e4
cmp word [ebx], 0x544f
jne 0x6278eb
cmp word [ebx + 2], 0x4f54
jne 0x6278eb
push ebp
call fcn.006273c4
pop ecx
inc dword [ebp - 0x34]
dec edi
jne 0x627894
mov eax, dword [ebp - 0x28]
call fcn.00401fac
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
inc dword [ebp - 0x30]
dec esi
jne 0x6277ae
mov eax, dword [ebp - 0x18]
call fcn.00650f38
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x24]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x627a47
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
jmp 0x627933
dec dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0
jle 0x62795b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x30]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x18]
mov ecx, dword [ebp - 0x34]
mov edx, dword [edx + ecx*4 - 4]
call fcn.0065411c
test eax, eax
je 0x627930
mov al, byte [0x627acc]
mov byte [ebp - 0x29], al
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
sub esi, ebx
jl 0x627991
inc esi
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x18]
cmp al, 7
ja 0x62798d
and eax, 0x7f
bts dword [ebp - 0x29], eax
inc ebx
dec esi
jne 0x62796e
mov dword [ebp - 0x38], 0x80000000
mov dword [ebp - 0x3c], 0x7fffffff
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
sub esi, ebx
jl 0x6279ec
inc esi
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x18]
and eax, 0xff
cmp eax, dword [ebp - 0x3c]
jge 0x6279e8
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x18]
and eax, 0xff
mov dword [ebp - 0x3c], eax
inc ebx
dec esi
jne 0x6279aa
xor ebx, ebx
mov eax, ebx
cmp eax, 7
ja 0x6279f9
bt dword [ebp - 0x29], eax
jb 0x627a30
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax + edx*4]
mov edx, dword [ebp - 0x30]
inc edx
mov eax, dword [ebp - 0x18]
call fcn.0064fd1c
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x38]
mov edx, dword [eax + edx*4]
mov ecx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.0064f61c
inc ebx
cmp ebx, 4
jne 0x6279ee
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x627928
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.00650140
mov eax, dword [ebp - 0x24]
call fcn.004028c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x627a7e
lea eax, [ebp - 0x44]
call fcn.00403880
lea eax, [ebp - 0x20]
call fcn.00403880
ret