Function at 0x4a8af0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xcc8
mov al, byte [0x6819d0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov byte [esp + 0xac], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xad]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xd00]
mov edx, dword [esp + 0xce8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xce4]
mov dword [esi + 0x484], ecx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004a9ad0
mov eax, dword [esp + 0xcec]
mov ebp, dword [esp + 0xcdc]
xor ecx, ecx
cmp eax, ecx
je 0x4a8b7b
xor edi, edi
cmp ebp, ecx
je 0x4a8b70
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0xcf8], edx
jmp 0x4a8be8
mov dword [esp + 0xcf8], ecx
xor ebx, ebx
jmp 0x4a8be8
mov eax, dword [esp + 0xcf8]
mov ebx, dword [esp + 0xcfc]
cmp eax, ecx
jle 0x4a8bda
cmp ebx, ecx
jle 0x4a8bda
cmp ebp, ecx
je 0x4a8bda
mov edi, dword [esp + 0xcf0]
cmp edi, 0xffffffff
jne 0x4a8bb9
mov eax, dword [ebp + 0x18]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0xcf8]
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov ecx, dword [esp + 0xcf4]
cmp ecx, 0xffffffff
jne 0x4a8be8
mov eax, dword [ebp + 0x1c]
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
jmp 0x4a8be8
mov ecx, dword [esp + 0xcf4]
mov edi, dword [esp + 0xcf0]
mov eax, dword [esp + 0xcf8]
push 0
push ebx
push eax
push ecx
mov ecx, dword [esp + 0xcf0]
push edi
push ecx
push ebp
mov ecx, esi
call fcn.004a6bc0
test eax, eax
jne 0x4a8c16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc8
ret 0x28
mov eax, dword [esp + 0xcf8]
mov edx, dword [esi]
push ebx
push eax
mov ecx, esi
call dword [edx + 0x104]
mov eax, dword [esp + 0xcec]
test eax, eax
je 0x4a8c55
push 0
push 0
push 0
mov edx, dword [esi]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
mov ecx, esi
call dword [edx + 0x18]
cmp dword [esi + 0x204], 0xffffffff
jne 0x4a8d19
lea edi, [esi + 0x100]
test edi, edi
je 0x4a8d19
cmp byte [edi], 0
je 0x4a8d19
push 0x2e
push edi
call fcn.00613f60
add esp, 8
test eax, eax
push edi
jne 0x4a8c98
lea eax, [esp + 0x1b0]
push str._s.sin
push eax
jmp 0x4a8ca5
lea ecx, [esp + 0x1b0]
push 0x66a2b4
push ecx
call fcn.00613634
add esp, 0xc
lea edx, [esp + 0x1ac]
push 0x8000
push edx
call fcn.00614875
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x4a8d19
push 2
push 0
push edi
call fcn.00614b56
push edi
call fcn.00614b45
mov ebp, eax
push 1
lea eax, [ebp + 1]
push eax
call fcn.006132aa
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4a8d0c
push 0
push 0
push edi
call fcn.00614b56
push ebp
push ebx
push edi
call fcn.0061467f
add esp, 0x18
mov dword [esp + 0x10], 1
push edi
call fcn.006145cc
add esp, 4
test ebx, ebx
jne 0x4a8d4d
mov eax, dword [esi + 0x204]
cmp eax, 0xffffffff
je 0x4a91b0
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
push 0x62696e61
call fcn.004c5530
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4a91b0
lea eax, [esp + 0x38]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0xb4]
push edx
lea ecx, [esp + 0x5c]
push eax
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x74]
push edx
lea ecx, [esp + 0xc4]
push eax
lea edx, [esp + 0x90]
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0xb4]
push eax
lea edx, [esp + 0xd4]
push ecx
lea eax, [esp + 0xac]
push edx
lea ecx, [esp + 0xd0]
push eax
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0xe4]
push edx
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x58]
push edx
lea ecx, [esp + 0xf4]
push eax
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x7c]
push eax
lea edx, [esp + 0x104]
push ecx
lea eax, [esp + 0xb8]
push edx
lea ecx, [esp + 0xec]
push eax
lea edx, [esp + 0xc8]
push ecx
lea eax, [esp + 0xfc]
push edx
lea ecx, [esp + 0xd8]
push eax
lea edx, [esp + 0x10c]
push ecx
lea eax, [esp + 0x120]
push edx
lea ecx, [esp + 0xfc]
push eax
lea edx, [esp + 0x128]
push ecx
lea eax, [esp + 0xd4]
push edx
lea ecx, [esp + 0x130]
push eax
lea edx, [esp + 0xf8]
push ecx
lea eax, [esp + 0xc60]
push edx
lea ecx, [esp + 0x13c]
push eax
lea edx, [esp + 0xfc]
push ecx
lea eax, [esp + 0xa64]
push edx
push eax
lea ecx, [esp + 0x14c]
lea edx, [esp + 0x118]
push ecx
lea eax, [esp + 0x150]
push edx
lea ecx, [esp + 0x154]
push eax
lea edx, [esp + 0x128]
push ecx
lea eax, [esp + 0x874]
push edx
lea ecx, [esp + 0x160]
push eax
lea edx, [esp + 0x104]
push ecx
lea eax, [esp + 0x678]
push edx
lea ecx, [esp + 0x16c]
push eax
lea edx, [esp + 0x100]
push ecx
lea eax, [esp + 0x150]
push edx
lea ecx, [esp + 0x480]
push eax
lea edx, [esp + 0x998]
push ecx
lea eax, [esp + 0x180]
push edx
lea ecx, [esp + 0x10c]
push eax
lea edx, [esp + 0x180]
push ecx
lea eax, [esp + 0x7a0]
push edx
lea ecx, [esp + 0x394]
push eax
lea edx, [esp + 0x194]
push ecx
lea eax, [esp + 0x130]
push edx
lea ecx, [esp + 0x188]
push eax
lea edx, [esp + 0x5ac]
push ecx
lea eax, [esp + 0xbc8]
push edx
lea ecx, [esp + 0x1a8]
push eax
push ecx
push str._s__s__s__d__d____s__s__s__d__d____s__s__s__d__d____s__s__d____s__s__d____s__s__d____s__s__d____s__s__d____s__d____s__d_____s__d__d__d__d__d__d____s__d__d__d____s__d__d__d____s__d__d__d____s__d__d__d___s__d__d__d___s__d__d__d
push ebx
call fcn.00613576
add esp, 0x10c
cmp eax, 0xffffffff
je 0x4a91a0
push 1
mov ecx, esi
call fcn.004aa000
push 0
mov ecx, esi
call fcn.004aa010
mov edx, dword [esi + 0x20]
cmp dword [edx + 0x18], 0x400
jl 0x4a8fd4
lea eax, [esp + 0x2b0]
push str.none
push eax
call fcn.00615cc0
add esp, 8
test eax, eax
je 0x4a8fd4
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 0x18], 0x500
jge 0x4a8fae
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x2b0]
push edx
push eax
mov ecx, esi
call fcn.004a9b40
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x6c0]
push ecx
push edx
jmp 0x4a8ff8
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x8c8]
push eax
push ecx
mov ecx, esi
call fcn.004a9b40
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x3b4]
push edx
push eax
jmp 0x4a8ff8
mov ecx, dword [esp + 0x98]
lea edx, [esp + 0xad0]
push ecx
push edx
mov ecx, esi
call fcn.004a9b40
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x4b8]
push eax
push ecx
mov ecx, esi
call fcn.004a9cb0
mov edx, dword [esp + 0x78]
mov ecx, esi
push edx
call fcn.004aa2c0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x5bc]
push eax
push ecx
mov ecx, esi
call fcn.004a9e70
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x7c4]
push edx
push eax
mov ecx, esi
call fcn.004a9fb0
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, esi
call fcn.004aa020
mov eax, dword [esp + 0x84]
mov ecx, esi
push eax
push eax
call fcn.004a9e20
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004aa030
mov eax, dword [esp + 0x14]
xor edx, edx
mov dh, byte [esp + 0x24]
and eax, 0xff
mov dl, byte [esp + 0x1c]
xor ecx, ecx
mov ch, byte [esp + 0x18]
mov cl, byte [esp + 0x20]
shl edx, 8
or edx, eax
push edx
mov edx, dword [esp + 0x2c]
shl ecx, 8
and edx, 0xff
or ecx, edx
push ecx
mov ecx, esi
call fcn.004aa070
mov ecx, dword [esp + 0x90]
xor eax, eax
mov ah, byte [esp + 0x74]
and ecx, 0xff
mov al, byte [esp + 0x2c]
xor edx, edx
mov dh, byte [esp + 0x80]
mov dl, byte [esp + 0xa0]
shl eax, 8
or eax, ecx
mov ecx, esi
push eax
mov eax, dword [esp + 0x34]
shl edx, 8
and eax, 0xff
or edx, eax
push edx
call fcn.004aa090
xor ecx, ecx
mov ch, byte [esp + 0x38]
mov cl, byte [esp + 0x40]
shl ecx, 8
mov edx, dword [esp + 0x48]
xor eax, eax
mov ah, byte [esp + 0x50]
and edx, 0xff
mov al, byte [esp + 0x58]
or ecx, edx
push ecx
mov ecx, dword [esp + 0x64]
shl eax, 8
and ecx, 0xff
or eax, ecx
mov ecx, esi
push eax
call fcn.004aa0b0
mov eax, dword [esp + 0x14]
xor edx, edx
mov dh, byte [esp + 0x24]
and eax, 0xff
mov dl, byte [esp + 0x1c]
xor ecx, ecx
mov ch, byte [esp + 0x18]
mov cl, byte [esp + 0x20]
shl edx, 8
or edx, eax
push edx
mov edx, dword [esp + 0x2c]
shl ecx, 8
and edx, 0xff
or ecx, edx
push ecx
mov ecx, esi
call fcn.004aa0d0
push 2
mov ecx, esi
call fcn.004aa0f0
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x9cc]
push eax
push ecx
mov ecx, esi
call fcn.004aa160
mov edx, dword [esp + 0x70]
lea eax, [esp + 0xbd4]
push edx
push eax
mov ecx, esi
call fcn.004aa100
cmp dword [esp + 0x10], 1
jne 0x4a91b0
push ebx
call fcn.00613327
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xcc8
ret 0x28