Function at 0x627488
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 0x6277e3
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0064d744
mov dword [ebp - 0x24], eax
push 0
lea edx, [ebp - 0x44]
mov eax, 0x14
call fcn.00621410
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
mov edx, 0x6277f8
call fcn.00621c48
push 0
lea edx, [ebp - 0x44]
mov eax, 0x1c
call fcn.00621410
lea eax, [ebp - 0x44]
mov edx, 0x627804
call fcn.00403ac4
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
mov edx, 0x6277f8
call fcn.00621c48
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0x24]
dec esi
test esi, esi
jl 0x627678
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.006585a4
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 0x627582
cmp word [ebx], 0x100
jne 0x627567
cmp word [ebx + 2], 0
je 0x627576
cmp word [ebx], 0x544f
jne 0x627582
cmp word [ebx + 2], 0x4f54
jne 0x627582
push ebp
call fcn.00627130
pop ecx
jmp 0x627665
mov edi, ebx
cmp dword [edi], 0x66637474
jne 0x627665
mov eax, dword [edi + 8]
call fcn.00627104
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 0x62765d
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
call fcn.00627104
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 0x62765d
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.00627104
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 0x627657
cmp word [ebx], 0x100
jne 0x627641
cmp word [ebx + 2], 0
je 0x627650
cmp word [ebx], 0x544f
jne 0x627657
cmp word [ebx + 2], 0x4f54
jne 0x627657
push ebp
call fcn.00627130
pop ecx
inc dword [ebp - 0x34]
dec edi
jne 0x627600
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 0x62751a
mov eax, dword [ebp - 0x18]
call fcn.00650684
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x24]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x6277b3
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
jmp 0x62769f
dec dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0
jle 0x6276c7
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.006537d4
test eax, eax
je 0x62769c
mov al, byte [0x627838]
mov byte [ebp - 0x29], al
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
sub esi, ebx
jl 0x6276fd
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 0x6276f9
and eax, 0x7f
bts dword [ebp - 0x29], eax
inc ebx
dec esi
jne 0x6276da
mov dword [ebp - 0x38], 0x80000000
mov dword [ebp - 0x3c], 0x7fffffff
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
sub esi, ebx
jl 0x627758
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 0x627754
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 0x627716
xor ebx, ebx
mov eax, ebx
cmp eax, 7
ja 0x627765
bt dword [ebp - 0x29], eax
jb 0x62779c
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.0064f468
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.0064ed68
inc ebx
cmp ebx, 4
jne 0x62775a
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x627694
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.0064f88c
mov eax, dword [ebp - 0x24]
call fcn.004028c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6277ea
lea eax, [ebp - 0x44]
call fcn.00403880
lea eax, [ebp - 0x20]
call fcn.00403880
ret