Function at 0x630d54
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 0x6310af
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.006562d0
mov dword [ebp - 0x24], eax
push 0
lea edx, [ebp - 0x44]
mov eax, 0x14
call fcn.0062ad1c
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
mov edx, 0x6310c4
call fcn.0062b55c
push 0
lea edx, [ebp - 0x44]
mov eax, 0x1c
call fcn.0062ad1c
lea eax, [ebp - 0x44]
mov edx, 0x6310d0
call fcn.00403ac4
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
mov edx, 0x6310c4
call fcn.0062b55c
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0x24]
dec esi
test esi, esi
jl 0x630f44
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.00660d68
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 0x630e4e
cmp word [ebx], 0x100
jne 0x630e33
cmp word [ebx + 2], 0
je 0x630e42
cmp word [ebx], 0x544f
jne 0x630e4e
cmp word [ebx + 2], 0x4f54
jne 0x630e4e
push ebp
call fcn.006309e4
pop ecx
jmp 0x630f31
mov edi, ebx
cmp dword [edi], 0x66637474
jne 0x630f31
mov eax, dword [edi + 8]
call fcn.006309b8
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 0x630f29
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
call fcn.006309b8
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 0x630f29
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.006309b8
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 0x630f23
cmp word [ebx], 0x100
jne 0x630f0d
cmp word [ebx + 2], 0
je 0x630f1c
cmp word [ebx], 0x544f
jne 0x630f23
cmp word [ebx + 2], 0x4f54
jne 0x630f23
push ebp
call fcn.006309e4
pop ecx
inc dword [ebp - 0x34]
dec edi
jne 0x630ecc
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 0x630de6
mov eax, dword [ebp - 0x18]
call fcn.00659018
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x24]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x63107f
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
jmp 0x630f6b
dec dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0
jle 0x630f93
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.0065bdfc
test eax, eax
je 0x630f68
mov al, byte [0x631104]
mov byte [ebp - 0x29], al
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
sub esi, ebx
jl 0x630fc9
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 0x630fc5
and eax, 0x7f
bts dword [ebp - 0x29], eax
inc ebx
dec esi
jne 0x630fa6
mov dword [ebp - 0x38], 0x80000000
mov dword [ebp - 0x3c], 0x7fffffff
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
sub esi, ebx
jl 0x631024
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 0x631020
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 0x630fe2
xor ebx, ebx
mov eax, ebx
cmp eax, 7
ja 0x631031
bt dword [ebp - 0x29], eax
jb 0x631068
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.00657dfc
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.0065779c
inc ebx
cmp ebx, 4
jne 0x631026
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x630f60
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.00658220
mov eax, dword [ebp - 0x24]
call fcn.004028c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6310b6
lea eax, [ebp - 0x44]
call fcn.00403880
lea eax, [ebp - 0x20]
call fcn.00403880
ret