Function at 0x446040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x6396a8]
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 0x446093
mov eax, dword [edi + 4]
jmp 0x446096
lea eax, [edi + 4]
push 0x60047c
push eax
call fcn.005b6041
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x138], esi
jne 0x4460f6
push edi
lea ecx, [ebp - 0x1a0]
push str.Demo_file_not_found:
push ecx
call fcn.00441e70
add esp, 0xc
mov ecx, dword [ebp - 0x11c]
push 0xffffffffffffffff
push esi
push eax
mov dword [ebp - 4], esi
call fcn.0043b440
cmp dword [ebp - 0x188], 0x10
jb 0x4460ef
mov edx, dword [ebp - 0x19c]
push edx
call fcn.005b28f2
add esp, 4
xor al, al
jmp 0x44659d
mov ecx, esi
lea eax, [ebp - 0x118]
call fcn.004465c0
push esi
push 1
lea eax, [ebp - 0x140]
push 4
push eax
mov dword [ebp - 4], 1
call fcn.005b74c9
add esp, 0x10
cmp dword [ebp - 0x140], 0x42beef78
je 0x44614e
mov ecx, dword [ebp - 0x11c]
push 0x12
push str.Invalid_demo_file.
call fcn.0043df40
lea eax, [ebp - 0x118]
call fcn.004465d0
xor al, al
jmp 0x44659d
push esi
push 1
lea ecx, [ebp - 0x144]
push 4
push ecx
call fcn.005b74c9
push esi
push 1
lea edi, [ebx + 8]
push 4
push edi
call fcn.005b74c9
mov eax, dword [edi]
call fcn.004700f0
push esi
push 1
lea edx, [ebp - 0x128]
push 2
push edx
mov dword [ebp - 0x128], 4
call fcn.005b74c9
mov eax, dword [ebp - 0x128]
add esp, 0x30
cmp ax, 0xff
jbe 0x4461a9
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.005b74c9
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 0x4461e0
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.0043b680
test eax, eax
je 0x4462e8
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x180]
call fcn.00438a30
push eax
lea eax, [ebp - 0x1a0]
push str.This_demo_file_appears_to_be_for_
push eax
mov byte [ebp - 4], 2
call fcn.00441e70
add esp, 0xc
push 0x6004ac
push eax
lea ecx, [ebp - 0x160]
push ecx
mov byte [ebp - 4], 3
call fcn.00441f20
add esp, 0xc
mov ecx, dword [ebp - 0x11c]
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
mov byte [ebp - 4], 4
call fcn.0043b440
mov esi, 0x10
cmp dword [ebp - 0x148], esi
jb 0x44627d
mov edx, dword [ebp - 0x15c]
push edx
call fcn.005b28f2
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 0x4462ac
mov eax, dword [ebp - 0x19c]
push eax
call fcn.005b28f2
add esp, 4
cmp dword [ebp - 0x168], esi
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x18c], edi
mov byte [ebp - 0x19c], 0
jb 0x4462d6
mov ecx, dword [ebp - 0x17c]
push ecx
call fcn.005b28f2
add esp, 4
lea eax, [ebp - 0x118]
call fcn.004465d0
xor al, al
jmp 0x44659d
push esi
call fcn.005b6785
add esp, 4
push 2
push 0
push esi
mov dword [ebp - 0x124], eax
call fcn.005b4400
add esp, 0xc
push esi
call fcn.005b6785
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x124]
push 0
push eax
push esi
sub edi, eax
call fcn.005b4400
add esp, 0xc
cmp dword [ebp - 0x144], 2
jb 0x446537
push esi
push 1
lea edx, [ebp - 0x120]
push 4
push edx
call fcn.005b74c9
sub edi, 4
add esp, 0x10
cmp dword [ebp - 0x120], edi
mov dword [ebp - 0x130], edi
jl 0x446377
mov ecx, dword [ebp - 0x11c]
push str.Invalid_demo_file.
call fcn.0043b530
lea eax, [ebp - 0x118]
call fcn.004465d0
xor al, al
jmp 0x44659d
lea eax, [ebp - 0x164]
call fcn.00472450
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x120]
push eax
call fcn.005b25e7
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.005b74c9
mov edi, dword [ebp - 0x120]
add esp, 0x10
lea edx, [ebp - 0x164]
push edx
call fcn.00472760
lea eax, [ebp - 0x164]
call fcn.004724d0
call fcn.004729f0
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x12c], ebx
jle 0x4464c4
jmp 0x4463f2
xor ebx, ebx
lea eax, [ebp - 0x164]
call fcn.00472b30
test al, al
jne 0x4464c4
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.00455a00
mov bl, 5
lea esi, [ebp - 0x184]
mov byte [ebp - 4], bl
call fcn.0042c1a0
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
cmp esi, eax
jne 0x44645d
call fcn.005b2af7
cmp esi, dword [edi + 4]
jne 0x446467
call fcn.005b2af7
lea edi, [ebp - 0x180]
lea ecx, [ebp - 0x164]
add esi, 8
call fcn.00472a30
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0043b440
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.00525310
lea eax, [ebp - 0x164]
call fcn.004729f0
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 0x4463f0
mov eax, dword [ebp - 0x124]
cmp dword [ebp - 0x12c], eax
je 0x446501
mov ecx, dword [ebp - 0x11c]
push 0x12
push str.Invalid_demo_file.
call fcn.0043df40
lea ecx, [ebp - 0x164]
call fcn.004724a0
lea eax, [ebp - 0x118]
call fcn.004465d0
xor al, al
jmp 0x44659d
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x120]
sub dword [ebp - 0x130], ecx
push edx
call fcn.005b39bc
add esp, 4
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 1
call fcn.004724a0
mov edi, dword [ebp - 0x130]
mov ebx, dword [ebp - 0x134]
push esi
push 1
push 4
add ebx, 0x568
push ebx
call fcn.005b74c9
sub edi, 4
add esp, 0x10
test edi, edi
jle 0x446355
push edi
call fcn.005b25e7
add esp, 4
push esi
push edi
mov ebx, eax
push 1
push ebx
call fcn.005b74c9
mov esi, dword [ebp - 0x134]
add esp, 0x10
add esi, 0x548
push esi
call fcn.00472760
mov eax, esi
call fcn.004724d0
push ebx
call fcn.005b39bc
add esp, 4
lea eax, [ebp - 0x118]
call fcn.004465d0
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.005b2f9b
mov esp, ebp
pop ebp
ret 4