Function at 0x445d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594e28
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x5d5de8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
cmp dword [ebx + 0x544], 0x10
lea edi, [ebx + 0x52c]
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x11c], eax
jb 0x445d73
mov eax, dword [edi + 4]
jmp 0x445d76
lea eax, [edi + 4]
push 0x5a6e2c
push eax
call fcn.0056cd31
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x138], esi
jne 0x445dd6
push edi
lea ecx, [ebp - 0x1a0]
push str.Demo_file_not_found:
push ecx
call fcn.00441b60
add esp, 0xc
mov ecx, dword [ebp - 0x11c]
push 0xffffffffffffffff
push esi
push eax
mov dword [ebp - 4], esi
call fcn.0043b2f0
cmp dword [ebp - 0x188], 0x10
jb 0x445dcf
mov edx, dword [ebp - 0x19c]
push edx
call fcn.00569095
add esp, 4
xor al, al
jmp 0x44627d
mov ecx, esi
lea eax, [ebp - 0x118]
call fcn.004462a0
push esi
push 1
lea eax, [ebp - 0x140]
push 4
push eax
mov dword [ebp - 4], 1
call fcn.0056e1b9
add esp, 0x10
cmp dword [ebp - 0x140], 0x42beef78
je 0x445e2e
mov ecx, dword [ebp - 0x11c]
push 0x12
push str.Invalid_demo_file.
call fcn.0043dd50
lea eax, [ebp - 0x118]
call fcn.004462b0
xor al, al
jmp 0x44627d
push esi
push 1
lea ecx, [ebp - 0x144]
push 4
push ecx
call fcn.0056e1b9
push esi
push 1
lea edi, [ebx + 8]
push 4
push edi
call fcn.0056e1b9
mov eax, dword [edi]
call fcn.00470460
push esi
push 1
lea edx, [ebp - 0x128]
push 2
push edx
mov dword [ebp - 0x128], 4
call fcn.0056e1b9
mov eax, dword [ebp - 0x128]
add esp, 0x30
cmp ax, 0xff
jbe 0x445e89
mov eax, 0xff
mov dword [ebp - 0x128], eax
movzx eax, ax
push esi
push eax
lea ecx, [ebp - 0x114]
push 1
push ecx
call fcn.0056e1b9
movzx edx, word [ebp - 0x128]
lea eax, [ebp - 0x114]
mov byte [ebp + edx - 0x114], 0
add esp, 0x10
lea edi, [ebx + 0x398]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x445ec0
mov ecx, dword [edi + 0x14]
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
push ecx
push 0
mov ecx, edi
call fcn.0043b500
test eax, eax
je 0x445fc8
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x180]
call fcn.00438950
push eax
lea eax, [ebp - 0x1a0]
push str.This_demo_file_appears_to_be_for_
push eax
mov byte [ebp - 4], 2
call fcn.00441b60
add esp, 0xc
push 0x5a6e5c
push eax
lea ecx, [ebp - 0x160]
push ecx
mov byte [ebp - 4], 3
call fcn.00441c10
add esp, 0xc
mov ecx, dword [ebp - 0x11c]
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
mov byte [ebp - 4], 4
call fcn.0043b2f0
mov esi, 0x10
cmp dword [ebp - 0x148], esi
jb 0x445f5d
mov edx, dword [ebp - 0x15c]
push edx
call fcn.00569095
add esp, 4
cmp dword [ebp - 0x188], esi
mov ebx, 0xf
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x14c], edi
mov byte [ebp - 0x15c], 0
jb 0x445f8c
mov eax, dword [ebp - 0x19c]
push eax
call fcn.00569095
add esp, 4
cmp dword [ebp - 0x168], esi
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x18c], edi
mov byte [ebp - 0x19c], 0
jb 0x445fb6
mov ecx, dword [ebp - 0x17c]
push ecx
call fcn.00569095
add esp, 4
lea eax, [ebp - 0x118]
call fcn.004462b0
xor al, al
jmp 0x44627d
push esi
call fcn.0056d475
add esp, 4
push 2
push 0
push esi
mov dword [ebp - 0x124], eax
call fcn.0056b3b9
add esp, 0xc
push esi
call fcn.0056d475
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x124]
push 0
push eax
push esi
sub edi, eax
call fcn.0056b3b9
add esp, 0xc
cmp dword [ebp - 0x144], 2
jb 0x446217
push esi
push 1
lea edx, [ebp - 0x120]
push 4
push edx
call fcn.0056e1b9
sub edi, 4
add esp, 0x10
cmp dword [ebp - 0x120], edi
mov dword [ebp - 0x130], edi
jl 0x446057
mov ecx, dword [ebp - 0x11c]
push str.Invalid_demo_file.
call fcn.00438a40
lea eax, [ebp - 0x118]
call fcn.004462b0
xor al, al
jmp 0x44627d
lea eax, [ebp - 0x164]
call fcn.004727c0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x120]
push eax
call fcn.00568c31
mov ecx, dword [ebp - 0x120]
add esp, 4
push esi
push ecx
mov ebx, eax
push 1
push ebx
mov dword [ebp - 0x13c], ebx
call fcn.0056e1b9
mov edi, dword [ebp - 0x120]
add esp, 0x10
lea edx, [ebp - 0x164]
push edx
call fcn.00472ad0
lea eax, [ebp - 0x164]
call fcn.00472840
call fcn.00472d60
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x12c], ebx
jle 0x4461a4
jmp 0x4460d2
xor ebx, ebx
lea eax, [ebp - 0x164]
call fcn.00472ea0
test al, al
jne 0x4461a4
mov dword [ebp - 0x16c], 0xf
mov dword [ebp - 0x170], ebx
mov byte [ebp - 0x180], bl
mov dword [ebp - 0x168], ebx
mov edi, dword [ebp - 0x134]
add edi, 0x59c
lea eax, [ebp - 0x184]
mov ebx, edi
mov byte [ebp - 4], 6
call fcn.004557c0
mov bl, 5
lea esi, [ebp - 0x184]
mov byte [ebp - 4], bl
call fcn.004462c0
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
cmp esi, eax
jne 0x44613d
call fcn.0056999e
cmp esi, dword [edi + 4]
jne 0x446147
call fcn.0056999e
lea edi, [ebp - 0x180]
lea ecx, [ebp - 0x164]
add esi, 8
call fcn.00472da0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0043b2f0
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.004389f0
lea eax, [ebp - 0x164]
call fcn.00472d60
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x12c]
mov esi, dword [ebp - 0x138]
add eax, 1
cmp eax, dword [ebp - 0x124]
mov dword [ebp - 0x12c], eax
jl 0x4460d0
mov eax, dword [ebp - 0x124]
cmp dword [ebp - 0x12c], eax
je 0x4461e1
mov ecx, dword [ebp - 0x11c]
push 0x12
push str.Invalid_demo_file.
call fcn.0043dd50
lea ecx, [ebp - 0x164]
call fcn.00472810
lea eax, [ebp - 0x118]
call fcn.004462b0
xor al, al
jmp 0x44627d
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x120]
sub dword [ebp - 0x130], ecx
push edx
call fcn.0056a975
add esp, 4
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 1
call fcn.00472810
mov edi, dword [ebp - 0x130]
mov ebx, dword [ebp - 0x134]
push esi
push 1
push 4
add ebx, 0x568
push ebx
call fcn.0056e1b9
sub edi, 4
add esp, 0x10
test edi, edi
jle 0x446035
push edi
call fcn.00568c31
add esp, 4
push esi
push edi
mov ebx, eax
push 1
push ebx
call fcn.0056e1b9
mov esi, dword [ebp - 0x134]
add esp, 0x10
add esi, 0x548
push esi
call fcn.00472ad0
mov eax, esi
call fcn.00472840
push ebx
call fcn.0056a975
add esp, 4
lea eax, [ebp - 0x118]
call fcn.004462b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005697e2
mov esp, ebp
pop ebp
ret 4