Function at 0x5478d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d63dc
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x6229a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x184], ecx
cmp dword [ecx + 0x51c], 0x10
lea esi, [ecx + 0x508]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x188], eax
mov eax, esi
jb 0x54791f
mov eax, dword [esi]
push 0x5d971c
push eax
call fcn.005a94a9
mov edi, eax
add esp, 8
mov dword [ebp - 0x194], edi
test edi, edi
jne 0x5479f4
mov ecx, dword [esi + 0x10]
mov eax, closesocket
sub eax, ecx
cmp eax, 0x15
jb 0x547f09
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x54795a
mov eax, dword [esi]
push ecx
push eax
push 0x15
push str.Demo_file_not_found:
push esi
push dword [ebp - 0x19c]
lea ecx, [ebp - 0x178]
call fcn.004deda0
mov esi, dword [ebp - 0x188]
lea eax, [ebp - 0x178]
cmp esi, eax
je 0x5479b1
mov ecx, esi
call fcn.00402f60
movups xmm0, xmmword [ebp - 0x178]
mov ecx, 0xf
mov byte [ebp - 0x178], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x168]
movq qword [esi + 0x10], xmm0
jmp 0x5479b7
mov ecx, dword [ebp - 0x164]
cmp ecx, 0x10
jb 0x547eea
mov edx, dword [ebp - 0x178]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5479e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x547f0e
push ecx
push edx
call fcn.0059b718
add esp, 8
jmp 0x547eea
mov dword [ebp - 0x1a8], edi
push edi
push 1
lea eax, [ebp - 0x1a4]
mov dword [ebp - 4], 0
push 4
push eax
call fcn.005a96a6
add esp, 0x10
cmp dword [ebp - 0x1a4], 0x42beef78
jne 0x547ecf
push edi
push 1
lea eax, [ebp - 0x19c]
push 4
push eax
call fcn.005a96a6
mov esi, dword [ebp - 0x184]
push edi
push 1
add esi, 8
push 4
push esi
call fcn.005a96a6
push dword [esi]
call fcn.004f7140
push edi
push 1
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x18c], 4
push 2
push eax
call fcn.005a96a6
mov eax, dword [ebp - 0x18c]
mov ecx, 0xff
cmp ax, cx
push edi
cmova eax, ecx
mov dword [ebp - 0x18c], eax
movzx eax, ax
push eax
lea eax, [ebp - 0x110]
push 1
push eax
call fcn.005a96a6
movzx eax, word [ebp - 0x18c]
add esp, 0x44
cmp eax, 0x100
jae 0x547f18
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x184]
add eax, 0x384
push eax
call fcn.004dc5e0
add esp, 8
test al, al
je 0x547bb6
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x114], 0
movups xmmword [ebp - 0x128], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x547b00
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00402b80
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x140]
push str.This_demo_file_appears_to_be_for_
push eax
call fcn.004dc800
push 0x5e5060
push eax
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 2
push eax
call fcn.004dc6f0
mov ecx, dword [ebp - 0x188]
add esp, 0x18
push eax
call fcn.004e0af0
lea ecx, [ebp - 0x15c]
call fcn.00402f60
lea ecx, [ebp - 0x140]
call fcn.00402f60
mov ecx, dword [ebp - 0x114]
cmp ecx, 0x10
jb 0x547ee1
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x547ba7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x547f13
push ecx
push edx
call fcn.0059b718
add esp, 8
jmp 0x547ee1
push edi
call fcn.005aa18d
push 2
push 0
push edi
mov esi, eax
call fcn.005a9a75
push edi
call fcn.005aa18d
push 0
sub eax, esi
push esi
push edi
mov dword [ebp - 0x17c], eax
call fcn.005a9a75
add esp, 0x20
cmp dword [ebp - 0x19c], 2
jb 0x547e4d
push edi
push 1
lea eax, [ebp - 0x180]
push 4
push eax
call fcn.005a96a6
mov esi, dword [ebp - 0x17c]
add esp, 0x10
sub esi, 4
mov dword [ebp - 0x17c], esi
cmp dword [ebp - 0x180], esi
jge 0x547ecf
lea ecx, [ebp - 0x144]
call fcn.004df2c0
push dword [ebp - 0x180]
mov byte [ebp - 4], 3
call fcn.0059b726
push edi
push dword [ebp - 0x180]
mov dword [ebp - 0x1a0], eax
push 1
push eax
call fcn.005a96a6
add esp, 0x14
lea ecx, [ebp - 0x144]
push dword [ebp - 0x180]
push dword [ebp - 0x1a0]
call fcn.004fabe0
lea ecx, [ebp - 0x144]
call fcn.004f71b0
lea ecx, [ebp - 0x144]
call fcn.004f5900
mov dword [ebp - 0x190], eax
xor eax, eax
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x198], eax
test ecx, ecx
jle 0x547e02
nop dword [eax]
lea ecx, [ebp - 0x144]
call fcn.004e1d80
test al, al
jne 0x547dea
xorps xmm0, xmm0
mov dword [ebp - 0x150], 0
movups xmmword [ebp - 0x160], xmm0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], al
mov dword [ebp - 0x148], 0
mov esi, dword [ebp - 0x184]
lea eax, [ebp - 0x160]
push eax
mov byte [ebp - 4], 4
lea ecx, [esi + 0x56c]
call fcn.0054eff0
mov ecx, dword [ebp - 0x14c]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x547d3b
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x547d31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x547f0e
push ecx
push edx
call fcn.0059b718
add esp, 8
mov eax, dword [esi + 0x56c]
lea ecx, [ebp - 0x144]
mov esi, dword [eax + 4]
lea eax, [ebp - 0x128]
push eax
add esi, 8
call fcn.004f5a10
mov edi, eax
cmp esi, edi
je 0x547d87
mov ecx, esi
call fcn.00402f60
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebp - 0x114]
cmp ecx, 0x10
jb 0x547dc1
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x547db7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x547f0e
push ecx
push edx
call fcn.0059b718
add esp, 8
lea ecx, [ebp - 0x144]
call fcn.004f5900
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x198]
inc eax
mov dword [ebp - 0x198], eax
cmp eax, dword [ebp - 0x190]
jl 0x547ca0
jmp 0x547df0
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x190]
mov esi, dword [ebp - 0x17c]
mov edi, dword [ebp - 0x194]
cmp eax, ecx
je 0x547e28
mov ecx, dword [ebp - 0x188]
push 0x12
push str.Invalid_demo_file.
call fcn.0040c5a0
lea ecx, [ebp - 0x144]
call fcn.004e0120
jmp 0x547ee1
push dword [ebp - 0x1a0]
sub esi, dword [ebp - 0x180]
call fcn.0059b72f
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.004e0120
jmp 0x547e53
mov esi, dword [ebp - 0x17c]
mov eax, dword [ebp - 0x184]
push edi
push 1
add eax, 0x53c
push 4
push eax
call fcn.005a96a6
sub esi, 4
add esp, 0x10
mov dword [ebp - 0x17c], esi
test esi, esi
jle 0x547ecf
push esi
call fcn.0059b726
push dword [ebp - 0x194]
mov edi, eax
push esi
push 1
push edi
call fcn.005a96a6
mov esi, dword [ebp - 0x184]
add esp, 0x14
mov eax, dword [ebp - 0x17c]
push eax
push edi
lea ecx, [esi + 0x520]
call fcn.004fabe0
lea ecx, [esi + 0x520]
call fcn.004f71b0
push edi
call fcn.0059b72f
push dword [ebp - 0x194]
call fcn.005a93b7
add esp, 8
mov al, 1
jmp 0x547eec
mov ecx, dword [ebp - 0x188]
push 0x12
push str.Invalid_demo_file.
call fcn.0040c5a0
push edi
call fcn.005a93b7
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059b734
mov esp, ebp
pop ebp
ret 4
call fcn.00404b20
call fcn.005a17d1
call fcn.005a17d1
call fcn.0059c2eb
int3