Function at 0x4a2780
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xcc8
mov al, byte [0x6619f0]
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.004a3760
mov eax, dword [esp + 0xcec]
mov ebp, dword [esp + 0xcdc]
xor ecx, ecx
cmp eax, ecx
je 0x4a280b
xor edi, edi
cmp ebp, ecx
je 0x4a2800
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0xcf8], edx
jmp 0x4a2878
mov dword [esp + 0xcf8], ecx
xor ebx, ebx
jmp 0x4a2878
mov eax, dword [esp + 0xcf8]
mov ebx, dword [esp + 0xcfc]
cmp eax, ecx
jle 0x4a286a
cmp ebx, ecx
jle 0x4a286a
cmp ebp, ecx
je 0x4a286a
mov edi, dword [esp + 0xcf0]
cmp edi, 0xffffffff
jne 0x4a2849
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 0x4a2878
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 0x4a2878
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.004a0820
test eax, eax
jne 0x4a28a6
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 + 0x100]
mov eax, dword [esp + 0xcec]
test eax, eax
je 0x4a28e5
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 0x4a29a9
lea edi, [esi + 0x100]
test edi, edi
je 0x4a29a9
cmp byte [edi], 0
je 0x4a29a9
push 0x2e
push edi
call fcn.005fcf90
add esp, 8
test eax, eax
push edi
jne 0x4a2928
lea eax, [esp + 0x1b0]
push str._s.sin
push eax
jmp 0x4a2935
lea ecx, [esp + 0x1b0]
push 0x64c2b4
push ecx
call fcn.005faef4
add esp, 0xc
lea edx, [esp + 0x1ac]
push 0x8000
push edx
call fcn.005fbe12
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x4a29a9
push 2
push 0
push edi
call fcn.005fc0f3
push edi
call fcn.005fc0e2
mov ebp, eax
push 1
lea eax, [ebp + 1]
push eax
call fcn.005fab6a
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4a299c
push 0
push 0
push edi
call fcn.005fc0f3
push ebp
push ebx
push edi
call fcn.005fbc1c
add esp, 0x18
mov dword [esp + 0x10], 1
push edi
call fcn.005fbb69
add esp, 4
test ebx, ebx
jne 0x4a29dd
mov eax, dword [esi + 0x204]
cmp eax, 0xffffffff
je 0x4a2e40
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
push 0x62696e61
call fcn.004be960
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4a2e40
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.005fae36
add esp, 0x10c
cmp eax, 0xffffffff
je 0x4a2e30
push 1
mov ecx, esi
call fcn.004a3c90
push 0
mov ecx, esi
call fcn.004a3ca0
mov edx, dword [esi + 0x20]
cmp dword [edx + 0x18], 0x400
jl 0x4a2c64
lea eax, [esp + 0x2b0]
push str.none
push eax
call fcn.005fd5a0
add esp, 8
test eax, eax
je 0x4a2c64
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 0x18], 0x500
jge 0x4a2c3e
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x2b0]
push edx
push eax
mov ecx, esi
call fcn.004a37d0
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x6c0]
push ecx
push edx
jmp 0x4a2c88
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x8c8]
push eax
push ecx
mov ecx, esi
call fcn.004a37d0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x3b4]
push edx
push eax
jmp 0x4a2c88
mov ecx, dword [esp + 0x98]
lea edx, [esp + 0xad0]
push ecx
push edx
mov ecx, esi
call fcn.004a37d0
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x4b8]
push eax
push ecx
mov ecx, esi
call fcn.004a3940
mov edx, dword [esp + 0x78]
mov ecx, esi
push edx
call fcn.004a3f50
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x5bc]
push eax
push ecx
mov ecx, esi
call fcn.004a3b00
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x7c4]
push edx
push eax
mov ecx, esi
call fcn.004a3c40
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, esi
call fcn.004a3cb0
mov eax, dword [esp + 0x84]
mov ecx, esi
push eax
push eax
call fcn.004a3ab0
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.004a3cc0
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.004a3d00
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.004a3d20
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.004a3d40
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.004a3d60
push 2
mov ecx, esi
call fcn.004a3d80
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x9cc]
push eax
push ecx
mov ecx, esi
call fcn.004a3df0
mov edx, dword [esp + 0x70]
lea eax, [esp + 0xbd4]
push edx
push eax
mov ecx, esi
call fcn.004a3d90
cmp dword [esp + 0x10], 1
jne 0x4a2e40
push ebx
call fcn.005fabe7
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xcc8
ret 0x28