Function at 0x48c480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x374
mov eax, dword [0x4d3100]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
test ebx, ebx
je 0x48c4b2
push ebx
call fcn.00494b54
add esp, 4
cmp dword [0x53bf90], 0
jne 0x48c4dd
push 0x575f18
call dword [0x4b4238]
push 0x4801a0
call fcn.0049543a
add esp, 4
mov dword [0x53bf90], 1
mov edx, 0x4c3d40
mov ecx, esi
call fcn.004810b0
mov ebx, eax
test ebx, ebx
jne 0x48c510
nop
push esi
push str.Ffopen_:
call fcn.004857d0
add esp, 8
mov edx, 0x4c3d40
mov ecx, esi
call fcn.004810b0
mov ebx, eax
test ebx, ebx
je 0x48c4f0
push ebx
push 1
lea eax, [esp + 0x28]
push 0x314
push eax
call fcn.00495739
add esp, 0x10
cmp eax, 1
jne 0x48c4a5
lea eax, [esp + 0x20]
cmp dword [eax], 0x9a925a98
jne 0x48c806
cmp dword [eax + 4], 0x30305f38
jne 0x48c806
cmp dword [0x588568], 0x9a925a98
jne 0x48c57b
cmp dword [0x58856c], 0x30305f38
jne 0x48c57b
mov ecx, 0xc5
mov esi, eax
mov edi, 0x588568
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
jmp 0x48c593
movdqu xmm0, xmmword [esp + 0x20]
mov edi, dword [esp + 0x30]
mov dword [0x588578], edi
movdqu xmmword [0x588568], xmm0
mov edx, 0x53c390
mov ecx, esi
sub edx, esi
lea esp, [esp]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x48c5a0
xor ecx, ecx
nop
mov al, byte [ecx + 0x4c3c36]
lea ecx, [ecx + 1]
mov byte [ecx + 0x53c49f], al
test al, al
jne 0x48c5b0
lea eax, [edi + 0x20]
push eax
call fcn.00497cab
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
jne 0x48c5ec
push 0x10
push str.malloc
push 0x4c9a90
push eax
call dword [0x4b4414]
push ebx
push 1
push dword [esp + 0x38]
push edi
call fcn.00495739
add esp, 0x10
cmp eax, 1
jne 0x48c4a5
push ebx
call fcn.00494b54
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push 0
call fcn.004863b0
mov esi, eax
lea ebx, [esp + 0x3e]
add esp, 8
mov dword [esp + 0x1c], esi
xor edi, edi
lea esp, [esp]
mov edx, dword [esi + 0x28]
lea ebx, [ebx + 3]
mov cl, byte [ebx - 5]
mov byte [edi + edx], cl
mov ecx, dword [esi + 0x28]
movzx eax, byte [ebx - 3]
mov byte [edi + ecx + 2], al
mov ecx, dword [esi + 0x28]
movzx eax, byte [ebx - 4]
mov byte [edi + ecx + 1], al
add edi, 4
cmp edi, 0x400
jl 0x48c630
mov ebx, dword [esp + 0x28]
mov edi, 2
mov eax, ebx
movdqa xmm0, xmmword [0x4c9fc0]
imul eax, dword [esp + 0x2c]
mov edx, 1
mov ecx, 0xfffffffe
movdqu xmmword [esp + 0x338], xmm0
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x2c]
or esi, 0xffffffff
mov dword [esp + 0x14], eax
mov eax, 3
sub eax, ebx
mov dword [esp + 0x348], eax
mov eax, edi
sub eax, ebx
mov dword [esp + 0x34c], eax
mov eax, edx
sub eax, ebx
mov dword [esp + 0x350], eax
mov eax, ebx
neg eax
mov dword [esp + 0x354], eax
mov eax, esi
sub eax, ebx
mov dword [esp + 0x358], eax
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x35c], eax
mov eax, 0xfffffffd
sub eax, ebx
mov dword [esp + 0x360], eax
lea eax, [ebx + ebx]
sub ecx, eax
sub edx, eax
sub esi, eax
mov dword [esp + 0x374], ecx
mov ecx, dword [esp + 0x18]
sub edi, eax
mov dword [esp + 0x368], edx
neg ebx
mov edx, dword [esp + 0x14]
add ebx, ebx
mov dword [esp + 0x370], esi
mov esi, 1
mov al, byte [ecx]
mov dword [esp + 0x364], edi
mov edi, esi
mov dword [esp + 0x36c], ebx
mov byte [edx], al
cmp dword [esp + 0x10], esi
jle 0x48c7b3
movzx ebx, byte [ecx + esi]
inc esi
test bl, bl
jns 0x48c77e
mov eax, ebx
and ebx, 7
sar eax, 3
and eax, 0xf
cmp ebx, 7
je 0x48c752
add ebx, 3
jmp 0x48c75c
movzx ebx, word [ecx + esi]
add ebx, 0xa
add esi, 2
test ebx, ebx
jle 0x48c7ad
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + eax*4 + 0x338]
add ecx, edi
add edi, ebx
nop
mov al, byte [ecx + edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec ebx
jne 0x48c770
jmp 0x48c7a5
cmp ebx, 0x7f
je 0x48c786
inc ebx
jmp 0x48c790
movzx ebx, word [ecx + esi]
sub ebx, 0xffffff80
add esi, 2
lea eax, [ecx + esi]
push ebx
push eax
lea eax, [edi + edx]
push eax
call fcn.0049c4f0
add esp, 0xc
add edi, ebx
add esi, ebx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp edi, dword [esp + 0x10]
jl 0x48c734
push ecx
call fcn.00494034
mov ebx, dword [esp + 0x20]
add esp, 4
mov eax, dword [ebx]
lea eax, [eax + eax*2]
cmp eax, dword [ebx + 8]
je 0x48c7ef
mov esi, dword [ebx + 4]
dec esi
js 0x48c7ef
mov eax, dword [ebx]
push eax
imul eax, esi
add eax, dword [ebx + 0x2c]
push eax
mov eax, dword [ebx + 8]
imul eax, esi
add eax, dword [ebx + 0x2c]
push eax
call fcn.004939f0
add esp, 0xc
dec esi
jns 0x48c7d0
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.00493955
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x48c813
push ebx
call fcn.00494b54
add esp, 4
mov ecx, dword [esp + 0x37c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00493955
mov esp, ebp
pop ebp
ret