Function at 0x48b160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1c8
mov eax, dword [0x4d3100]
xor eax, esp
mov dword [esp + 0x1c4], eax
push esi
push edi
xor esi, esi
mov edi, ecx
xor eax, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], eax
lea ebx, [ebx]
test esi, esi
je 0x48b1a1
push esi
call fcn.00494b54
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x48b1ae
push eax
call fcn.00494034
add esp, 4
cmp dword [0x53bf90], 0
jne 0x48b1d9
push 0x575f18
call dword [0x4b4238]
push 0x4801a0
call fcn.0049543a
add esp, 4
mov dword [0x53bf90], 1
mov edx, 0x4c3d40
mov ecx, edi
call fcn.004810b0
mov esi, eax
mov dword [esp + 8], esi
test esi, esi
jne 0x48b214
nop
push edi
push str.Ffopen_:
call fcn.004857d0
add esp, 8
mov edx, 0x4c3d40
mov ecx, edi
call fcn.004810b0
mov esi, eax
mov dword [esp + 8], eax
test esi, esi
je 0x48b1f0
push esi
push 1
lea eax, [esp + 0x28]
push 0x14
push eax
call fcn.00495739
add esp, 0x10
cmp eax, 1
mov eax, dword [esp + 0xc]
jne 0x48b190
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0
cmp dword [eax], 0x9a925a98
jne 0x48b2d8
cmp dword [eax + 4], 0x30304354
jne 0x48b2d8
cmp dword [0x588568], 0x9a925a98
jne 0x48b28a
cmp dword [0x58856c], 0x30305f38
jne 0x48b28a
mov ecx, 0xc5
lea esi, [esp + 0x20]
mov edi, 0x588568
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x1c]
jmp 0x48b2a1
movdqu xmm0, xmmword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov dword [0x588578], eax
movdqu xmmword [0x588568], xmm0
mov edx, 0x53c390
mov ecx, edi
sub edx, edi
lea ebx, [ebx]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x48b2b0
xor ecx, ecx
nop
mov al, byte [ecx + 0x4c3c36]
lea ecx, [ecx + 1]
mov byte [ecx + 0x53c49f], al
test al, al
jne 0x48b2c0
jmp 0x48b47c
lea eax, [esp + 0x20]
cmp dword [eax], 0x9a925a98
jne 0x48b318
cmp dword [eax + 4], 0x30305354
jne 0x48b318
mov edx, eax
mov ecx, edi
call fcn.0048c420
xor ecx, ecx
jmp 0x48b300
mov al, byte [ecx + 0x4c3c36]
lea ecx, [ecx + 1]
mov byte [ecx + 0x53c49f], al
test al, al
jne 0x48b300
jmp 0x48b474
lea ecx, [esp + 0x20]
mov dword [esp + 8], 4
mov edx, 0x4c9ae0
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x48b347
add ecx, 4
add edx, 4
sub dword [esp + 8], 4
jae 0x48b330
xor eax, eax
jmp 0x48b36c
cmp al, byte [edx]
jne 0x48b367
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x48b367
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x48b367
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x48b367
xor eax, eax
jmp 0x48b36c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x48b3c9
lea edx, [esp + 0x20]
mov ecx, edi
call fcn.0048c420
push esi
push 1
lea eax, [esp + 0x20]
push 2
push eax
call fcn.00495739
movzx eax, word [esp + 0x28]
push esi
push 1
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.00495739
add esp, 0x20
xor ecx, ecx
jmp 0x48b3b0
mov al, byte [esp + ecx + 0xc0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x53c49f], al
test al, al
jne 0x48b3b0
jmp 0x48b47c
lea ecx, [esp + 0x20]
mov dword [esp + 8], 4
mov edx, 0x4c9aec
lea ebx, [ebx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x48b3f7
add ecx, 4
add edx, 4
sub dword [esp + 8], 4
jae 0x48b3e0
xor eax, eax
jmp 0x48b41c
cmp al, byte [edx]
jne 0x48b417
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x48b417
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x48b417
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x48b417
xor eax, eax
jmp 0x48b41c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x48b835
lea edx, [esp + 0x20]
mov ecx, edi
call fcn.0048c420
push esi
push 1
lea eax, [esp + 0x1c]
push 2
push eax
call fcn.00495739
movzx eax, word [esp + 0x24]
push esi
push 1
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.00495739
add esp, 0x20
xor ecx, ecx
lea esp, [esp]
mov al, byte [esp + ecx + 0xc0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x53c49f], al
test al, al
jne 0x48b460
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x30]
add eax, 0x20
push eax
call fcn.00497cab
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48b4ab
push 0x10
push str.malloc
push 0x4c9a90
push eax
call dword [0x4b4414]
mov eax, dword [esp + 0xc]
push esi
push 1
push dword [esp + 0x38]
push eax
call fcn.00495739
add esp, 0x10
cmp eax, 1
mov eax, dword [esp + 0xc]
jne 0x48b190
push esi
call fcn.00494b54
add esp, 4
cmp dword [esp + 0x10], 0
je 0x48b527
mov esi, dword [esp + 0xc]
mov ecx, esi
mov edx, dword [esp + 0x30]
call fcn.00487220
mov eax, dword [esp + 0x30]
cmp byte [esi + eax - 2], 0x54
jne 0x48b4f9
cmp byte [esi + eax - 1], 0x53
je 0x48b527
push esi
call fcn.00494034
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push 0
push 0x20
call fcn.00486160
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.00493955
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x28]
mov eax, ecx
mov edx, dword [esp + 0x2c]
imul eax, edx
push 0
push 0x20
shl eax, 2
mov dword [esp + 0x10], eax
call fcn.00486160
mov esi, dword [esp + 0x30]
mov edi, 4
mov dword [esp + 0x20], eax
mov edx, 0xfffffffc
movdqa xmm0, xmmword [0x4c9fa0]
add esp, 8
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x14], eax
lea ecx, [esi*4]
mov eax, 3
mov dword [esp + 0x50], 0xffffffec
sub eax, esi
mov dword [esp + 0x54], 0xffffffe8
shl eax, 2
mov dword [esp + 0x58], eax
mov eax, 2
sub eax, esi
shl eax, 2
mov dword [esp + 0x5c], eax
mov eax, edi
sub eax, ecx
mov dword [esp + 0x60], eax
mov eax, esi
neg eax
shl eax, 2
mov dword [esp + 0x64], eax
mov eax, edx
sub eax, ecx
lea ecx, [esi*8]
mov dword [esp + 0x68], eax
sub edi, ecx
mov eax, 0xfffffffe
mov dword [esp + 0x7c], edi
sub eax, esi
sub edx, ecx
shl eax, 2
mov edi, 0xfffffff8
mov dword [esp + 0x6c], eax
mov eax, 0xfffffffd
sub eax, esi
mov dword [esp + 0x84], edx
shl eax, 2
mov esi, 0xc
mov dword [esp + 0x70], eax
mov edx, 0xfffffff4
mov eax, esi
sub eax, ecx
mov dword [esp + 0x74], eax
mov eax, 8
sub eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
neg eax
shl eax, 3
mov dword [esp + 0x80], eax
mov eax, edi
sub eax, ecx
mov dword [esp + 0x88], eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x28]
movdqu xmmword [esp + 0x40], xmm0
lea ecx, [eax + eax*2]
shl ecx, 2
sub esi, ecx
mov dword [esp + 0x90], esi
mov esi, 8
mov eax, esi
sub eax, ecx
mov dword [esp + 0x94], eax
mov eax, 4
sub eax, ecx
sub edx, ecx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x28]
shl eax, 2
sub eax, dword [esp + 0x28]
neg eax
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x28]
shl eax, 2
mov dword [esp + 0x9c], eax
mov eax, 0xfffffffc
sub eax, ecx
mov dword [esp + 0xa0], eax
mov eax, edi
sub eax, ecx
mov ecx, 4
mov dword [esp + 0xa4], eax
mov eax, edx
shl eax, 4
neg edx
sub ecx, eax
shl edx, 4
sub edi, eax
mov dword [esp + 0xb0], ecx
mov ecx, 0xfffffffc
mov dword [esp + 0xbc], edi
mov edi, dword [esp + 0xc]
sub ecx, eax
sub esi, eax
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xb4], edx
mov edx, 4
movzx eax, byte [edi]
mov dword [esp + 0xac], esi
mov byte [ecx], al
movzx eax, byte [edi + 1]
mov byte [ecx + 1], al
movzx eax, byte [edi + 2]
mov byte [ecx + 2], al
mov eax, 3
mov byte [ecx + 3], 0
cmp dword [esp + 8], edx
jle 0x48b77a
movzx ecx, byte [edi + eax]
inc eax
test cl, cl
jns 0x48b7de
mov esi, ecx
and ecx, 3
sar esi, 2
and esi, 0x1f
cmp ecx, 3
je 0x48b738
lea edi, [ecx*4 + 4]
jmp 0x48b746
movzx ecx, word [edi + eax]
add eax, 2
lea edi, [ecx*4 + 0x10]
test edi, edi
jle 0x48b770
mov ecx, dword [esp + esi*4 + 0x40]
mov esi, dword [esp + 0x14]
add esi, edx
mov dword [esp + 0x1c], ecx
add edx, edi
mov dword [esp + 0x10], edx
mov edx, ecx
mov cl, byte [esi + edx]
lea esi, [esi + 1]
mov byte [esi - 1], cl
dec edi
jne 0x48b760
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
cmp edx, dword [esp + 8]
jl 0x48b712
push edi
call fcn.00494034
mov edi, dword [esp + 0x1c]
add esp, 4
mov eax, dword [edi]
shl eax, 2
cmp eax, dword [edi + 8]
je 0x48b7c8
mov esi, dword [edi + 4]
dec esi
js 0x48b7c8
jmp 0x48b7a0
mov ecx, dword [edi]
mov edx, dword [edi + 0x2c]
lea eax, [ecx*4]
imul ecx, esi
push eax
lea eax, [edx + ecx*4]
push eax
mov eax, dword [edi + 8]
imul eax, esi
add eax, edx
push eax
call fcn.004939f0
add esp, 0xc
dec esi
jns 0x48b7a0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.00493955
mov esp, ebp
pop ebp
ret
cmp ecx, 0x7f
je 0x48b7e6
inc ecx
jmp 0x48b7f0
movzx ecx, word [edi + eax]
sub ecx, 0xffffff80
add eax, 2
mov dword [esp + 0x10], ecx
test ecx, ecx
jle 0x48b774
lea esp, [esp]
mov esi, dword [esp + 0x14]
movzx ecx, byte [edi + eax]
mov byte [esi + edx], cl
movzx ecx, byte [edi + eax + 1]
mov byte [esi + edx + 1], cl
movzx ecx, byte [edi + eax + 2]
add eax, 3
mov byte [esi + edx + 2], cl
mov ecx, esi
mov byte [ecx + edx + 3], 0
add edx, 4
dec dword [esp + 0x10]
jne 0x48b800
jmp 0x48b774
test esi, esi
je 0x48b842
push esi
call fcn.00494b54
add esp, 4
mov ecx, dword [esp + 0x1cc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00493955
mov esp, ebp
pop ebp
ret