Function at 0x4a2890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5222a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x70]
call fcn.004a76d0
xor ebp, ebp
lea ecx, [esp + 0x50]
mov dword [esp + 0x98], ebp
call fcn.004a76d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 1
call fcn.004a76d0
mov eax, dword [edi + 8]
mov byte [esp + 0x98], 2
cmp eax, ebp
je 0x4a2f11
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
push ebp
push 0x18
push eax
push ecx
mov ecx, dword [edi + 0x30]
call fcn.004a5900
test eax, eax
je 0x4a2f11
mov edx, dword [edi + 0x28]
push ebp
push 0x56c6d8
push edx
lea ecx, [esp + 0x7c]
call fcn.004a77c0
test eax, eax
je 0x4a2f11
mov eax, dword [edi + 0x28]
push ebp
push 0x56c6d8
push eax
lea ecx, [esp + 0x5c]
call fcn.004a77c0
test eax, eax
je 0x4a2f11
mov ecx, dword [edi + 0x28]
push ebp
push 0x56c6d8
push ecx
lea ecx, [esp + 0x3c]
call fcn.004a77c0
test eax, eax
je 0x4a2f11
lea ecx, [esp + 0x70]
call fcn.0045cdd0
lea ecx, [esp + 0x50]
mov dword [esp + 0x14], eax
call fcn.0045cdd0
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
call fcn.0045cdd0
mov esi, eax
mov eax, dword [edi + 0x24]
sub eax, 0xb
je 0x4a29a7
dec eax
je 0x4a29a0
dec eax
jne 0x4a2f11
mov eax, 0x30000
jmp 0x4a29ac
mov eax, 0xb800
jmp 0x4a29ac
mov eax, 0x2000
mov edx, dword [edi + 4]
push ebp
push eax
push edx
call fcn.004fc589
add esp, 0xc
test eax, eax
jne 0x4a2f11
mov ecx, dword [edi + 0x30]
call fcn.004a5c90
mov ecx, dword [edi + 0x30]
mov ebx, eax
call fcn.004a5cc0
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x2c]
cmp eax, ebp
mov dword [esp + 0x24], ebp
jbe 0x4a2e8a
add ebx, 2
mov dword [esp + 0x20], ebx
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x28]
mov edx, dword [esp + 0x14]
push eax
push 1
push ecx
push edx
call fcn.004fc194
add esp, 0x10
test eax, eax
je 0x4a2f11
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x28]
mov edx, dword [esp + 0x1c]
push eax
push 1
push ecx
push edx
call fcn.004fc194
add esp, 0x10
test eax, eax
je 0x4a2f11
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x28]
push eax
push 1
push ecx
push esi
call fcn.004fc194
add esp, 0x10
test eax, eax
je 0x4a2f11
mov eax, dword [edi + 0x28]
xor ebx, ebx
test eax, eax
jbe 0x4a2c4e
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], edx
mov ebp, ebx
xor ecx, ecx
shr ebp, 1
shr eax, 1
add eax, ebp
xor edx, edx
mov dl, byte [esi + ebp]
sub esp, 8
mov cl, byte [eax + esi]
sub edx, 0x9c
sub ecx, 0x89
xor eax, eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x1c]
fild dword [esp + 0x34]
mov dword [esp + 0x34], edx
mov al, byte [ebx + ecx]
fmul qword [0x534340]
fild dword [esp + 0x34]
mov dword [esp + 0x34], eax
fmul qword [0x534338]
faddp st(1)
fild dword [esp + 0x34]
fmul qword [0x534330]
faddp st(1)
fadd qword [0x550758]
fstp qword [esp]
call fcn.004f90b0
fcom qword [0x52cee0]
add esp, 8
fnstsw ax
test ah, 1
je 0x4a2adc
fstp st(0)
fld qword [0x52cee0]
jmp 0x4a2af1
fcom qword [0x5350f8]
fnstsw ax
test ah, 0x41
jne 0x4a2af1
fstp st(0)
fld qword [0x5350f8]
call fcn.004f91e0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub esp, 8
mov byte [edx - 2], al
mov edx, dword [edi + 0x28]
xor eax, eax
mov al, byte [ebx + ecx]
xor ecx, ecx
shr edx, 1
mov dword [esp + 0x34], eax
add edx, ebp
fild dword [esp + 0x34]
xor eax, eax
mov cl, byte [esi + ebp]
mov al, byte [edx + esi]
sub ecx, 0x9c
fmul qword [0x534330]
sub eax, 0x89
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
mov dword [esp + 0x34], ecx
fmul qword [0x534328]
fild dword [esp + 0x34]
fmul qword [0x534320]
faddp st(1)
fsubp st(1)
fadd qword [0x550758]
fstp qword [esp]
call fcn.004f90b0
fcom qword [0x52cee0]
add esp, 8
fnstsw ax
test ah, 1
je 0x4a2b7b
fstp st(0)
fld qword [0x52cee0]
jmp 0x4a2b90
fcom qword [0x5350f8]
fnstsw ax
test ah, 0x41
jne 0x4a2b90
fstp st(0)
fld qword [0x5350f8]
call fcn.004f91e0
mov edx, dword [esp + 0x18]
xor ecx, ecx
sub esp, 8
mov byte [edx - 1], al
mov eax, dword [edi + 0x28]
shr eax, 1
add eax, ebp
xor edx, edx
mov dl, byte [esi + ebp]
mov cl, byte [eax + esi]
sub edx, 0x9c
sub ecx, 0x89
xor eax, eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x1c]
fild dword [esp + 0x34]
mov dword [esp + 0x34], edx
mov al, byte [ebx + ecx]
fmul qword [0x534338]
fild dword [esp + 0x34]
mov dword [esp + 0x34], eax
fmul qword [0x534318]
faddp st(1)
fild dword [esp + 0x34]
fmul qword [0x534330]
faddp st(1)
fadd qword [0x550758]
fstp qword [esp]
call fcn.004f90b0
fcom qword [0x52cee0]
add esp, 8
fnstsw ax
test ah, 1
je 0x4a2c1b
fstp st(0)
fld qword [0x52cee0]
jmp 0x4a2c30
fcom qword [0x5350f8]
fnstsw ax
test ah, 0x41
jne 0x4a2c30
fstp st(0)
fld qword [0x5350f8]
call fcn.004f91e0
mov ecx, dword [esp + 0x18]
inc ebx
mov byte [ecx], al
mov eax, dword [edi + 0x28]
add ecx, 3
cmp ebx, eax
mov dword [esp + 0x18], ecx
jb 0x4a2a5c
mov eax, dword [edi + 0x28]
xor ebx, ebx
test eax, eax
jbe 0x4a2e59
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
add edx, ecx
mov dword [esp + 0x18], edx
mov ebp, ebx
xor edx, edx
shr ebp, 1
shr eax, 1
add eax, ebp
xor ecx, ecx
sub esp, 8
mov dl, byte [eax + esi]
xor eax, eax
mov al, byte [esi + ebp]
sub edx, 0x89
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x24]
fild dword [esp + 0x34]
sub eax, 0x9c
mov cl, byte [ebx + edx]
mov dword [esp + 0x34], eax
fmul qword [0x534340]
fild dword [esp + 0x34]
mov dword [esp + 0x34], ecx
fmul qword [0x534338]
faddp st(1)
fild dword [esp + 0x34]
fmul qword [0x534330]
faddp st(1)
fadd qword [0x550758]
fstp qword [esp]
call fcn.004f90b0
fcom qword [0x52cee0]
add esp, 8
fnstsw ax
test ah, 1
je 0x4a2ce8
fstp st(0)
fld qword [0x52cee0]
jmp 0x4a2cfd
fcom qword [0x5350f8]
fnstsw ax
test ah, 0x41
jne 0x4a2cfd
fstp st(0)
fld qword [0x5350f8]
call fcn.004f91e0
mov ecx, dword [esp + 0x18]
xor edx, edx
sub esp, 8
mov byte [ecx - 2], al
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x28]
mov dl, byte [ebx + eax]
xor eax, eax
shr ecx, 1
mov dword [esp + 0x34], edx
add ecx, ebp
fild dword [esp + 0x34]
xor edx, edx
mov al, byte [esi + ebp]
mov dl, byte [ecx + esi]
sub eax, 0x9c
fmul qword [0x534330]
sub edx, 0x89
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
mov dword [esp + 0x34], eax
fmul qword [0x534328]
fild dword [esp + 0x34]
fmul qword [0x534320]
faddp st(1)
fsubp st(1)
fadd qword [0x550758]
fstp qword [esp]
call fcn.004f90b0
fcom qword [0x52cee0]
add esp, 8
fnstsw ax
test ah, 1
je 0x4a2d87
fstp st(0)
fld qword [0x52cee0]
jmp 0x4a2d9c
fcom qword [0x5350f8]
fnstsw ax
test ah, 0x41
jne 0x4a2d9c
fstp st(0)
fld qword [0x5350f8]
call fcn.004f91e0
mov ecx, dword [esp + 0x18]
sub esp, 8
mov byte [ecx - 1], al
mov edx, dword [edi + 0x28]
shr edx, 1
add edx, ebp
xor eax, eax
xor ecx, ecx
mov al, byte [edx + esi]
mov cl, byte [esi + ebp]
sub eax, 0x89
sub ecx, 0x9c
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
fild dword [esp + 0x34]
mov dword [esp + 0x34], ecx
xor edx, edx
mov dl, byte [ebx + eax]
fmul qword [0x534338]
fild dword [esp + 0x34]
mov dword [esp + 0x34], edx
fmul qword [0x534318]
faddp st(1)
fild dword [esp + 0x34]
fmul qword [0x534330]
faddp st(1)
fadd qword [0x550758]
fstp qword [esp]
call fcn.004f90b0
fcom qword [0x52cee0]
add esp, 8
fnstsw ax
test ah, 1
je 0x4a2e26
fstp st(0)
fld qword [0x52cee0]
jmp 0x4a2e3b
fcom qword [0x5350f8]
fnstsw ax
test ah, 0x41
jne 0x4a2e3b
fstp st(0)
fld qword [0x5350f8]
call fcn.004f91e0
mov ecx, dword [esp + 0x18]
inc ebx
mov byte [ecx], al
mov eax, dword [edi + 0x28]
add ecx, 3
cmp ebx, eax
mov dword [esp + 0x18], ecx
jb 0x4a2c69
mov ebx, dword [esp + 0x24]
mov ecx, edi
push ebx
push 1
call fcn.004a2710
mov ecx, dword [esp + 0x28]
add ebx, 2
mov dword [esp + 0x24], ebx
lea eax, [ecx + ecx]
mov ecx, dword [esp + 0x20]
add ecx, eax
mov eax, dword [edi + 0x2c]
cmp ebx, eax
mov dword [esp + 0x20], ecx
jb 0x4a29ee
mov eax, dword [edi + 0x2c]
mov ecx, edi
dec eax
push eax
push 1
call fcn.004a2710
push 1
lea ecx, [esp + 0x74]
call fcn.004a7740
push 1
lea ecx, [esp + 0x54]
call fcn.004a7740
push 1
lea ecx, [esp + 0x34]
call fcn.004a7740
mov ecx, edi
call fcn.004a2790
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 1
call fcn.004a76f0
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], 0
call fcn.004a76f0
lea ecx, [esp + 0x70]
mov dword [esp + 0x98], 0xffffffff
call fcn.004a76f0
mov eax, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x2c]
mov ecx, edi
dec edx
push edx
push 1
call fcn.004a2710
push 1
lea ecx, [esp + 0x74]
call fcn.004a7740
push 1
lea ecx, [esp + 0x54]
call fcn.004a7740
push 1
lea ecx, [esp + 0x34]
call fcn.004a7740
mov ecx, edi
call fcn.004a2790
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 1
call fcn.004a76f0
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], 0
call fcn.004a76f0
lea ecx, [esp + 0x70]
mov dword [esp + 0x98], 0xffffffff
call fcn.004a76f0
mov ecx, dword [esp + 0x90]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret