Function at 0x4cd3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa088
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x654c54]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x360], ecx
mov eax, dword [ebp - 0x360]
add eax, 0x5a0
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
cmp dword [ecx + 0x18], 0x10
jb 0x4cd43f
mov edx, dword [ebp - 0x240]
mov eax, dword [edx + 4]
mov dword [ebp - 0x364], eax
jmp 0x4cd44e
mov ecx, dword [ebp - 0x240]
add ecx, 4
mov dword [ebp - 0x364], ecx
push 0x606a70
mov edx, dword [ebp - 0x364]
push edx
call fcn.005cc851
add esp, 8
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x4cd4de
mov eax, dword [ebp - 0x360]
add eax, 0x5a0
push eax
push str.Demo_file_not_found:
lea ecx, [ebp - 0x188]
push ecx
call fcn.0040f440
add esp, 0xc
mov dword [ebp - 0x368], eax
mov edx, dword [ebp - 0x368]
mov dword [ebp - 0x244], edx
mov dword [ebp - 4], 0
mov eax, dword [0x611c1c]
push eax
push 0
mov ecx, dword [ebp - 0x244]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040aae0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x188]
call fcn.004079f0
xor al, al
jmp 0x4cdbbd
mov edx, dword [ebp - 0x130]
push edx
lea ecx, [ebp - 0x134]
call fcn.004cdbe0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x130]
push eax
push 1
push 4
lea ecx, [ebp - 0x18]
push ecx
call fcn.005cd555
add esp, 0x10
cmp dword [ebp - 0x18], 0x42beef78
je 0x4cd562
push str.Invalid_demo_file.
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x248], eax
mov edx, dword [ebp - 0x248]
push edx
push str.Invalid_demo_file.
mov ecx, dword [ebp + 8]
call fcn.0040b080
mov byte [ebp - 0x189], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.004cdc00
mov al, byte [ebp - 0x189]
jmp 0x4cdbbd
mov eax, dword [ebp - 0x130]
push eax
push 1
push 4
lea ecx, [ebp - 0x128]
push ecx
call fcn.005cd555
add esp, 0x10
mov edx, dword [ebp - 0x130]
push edx
push 1
push 4
mov eax, dword [ebp - 0x360]
add eax, 8
push eax
call fcn.005cd555
add esp, 0x10
mov ecx, dword [ebp - 0x360]
mov edx, dword [ecx + 8]
push edx
call fcn.00525d40
add esp, 4
mov eax, 4
mov word [ebp - 0x12c], ax
mov ecx, dword [ebp - 0x130]
push ecx
push 1
push 2
lea edx, [ebp - 0x12c]
push edx
call fcn.005cd555
add esp, 0x10
movzx eax, word [ebp - 0x12c]
cmp eax, 0xff
jle 0x4cd5eb
mov ecx, 0xff
mov word [ebp - 0x12c], cx
mov edx, dword [ebp - 0x130]
push edx
movzx eax, word [ebp - 0x12c]
push eax
push 1
lea ecx, [ebp - 0x124]
push ecx
call fcn.005cd555
add esp, 0x10
movzx edx, word [ebp - 0x12c]
mov byte [ebp + edx - 0x124], 0
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x360]
add ecx, 0x3cc
push ecx
call fcn.004f1a80
add esp, 8
movzx edx, al
test edx, edx
je 0x4cd740
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x1a8]
call fcn.0040dbc0
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
mov dword [ebp - 0x370], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x370]
push edx
push str.This_demo_file_appears_to_be_for_
lea eax, [ebp - 0x1c4]
push eax
call fcn.0040f440
add esp, 0xc
mov dword [ebp - 0x374], eax
mov ecx, dword [ebp - 0x374]
mov dword [ebp - 0x378], ecx
mov byte [ebp - 4], 3
push 0x606be4
mov edx, dword [ebp - 0x378]
push edx
lea eax, [ebp - 0x1e0]
push eax
call fcn.0040f1e0
add esp, 0xc
mov dword [ebp - 0x37c], eax
mov ecx, dword [ebp - 0x37c]
mov dword [ebp - 0x278], ecx
mov byte [ebp - 4], 4
mov edx, dword [0x611c1c]
push edx
push 0
mov eax, dword [ebp - 0x278]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040aae0
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x1e0]
call fcn.004079f0
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x1c4]
call fcn.004079f0
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x1a8]
call fcn.004079f0
mov byte [ebp - 0x1e1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.004cdc00
mov al, byte [ebp - 0x1e1]
jmp 0x4cdbbd
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.005d097a
add esp, 4
mov dword [ebp - 0x14], eax
push 2
push 0
mov edx, dword [ebp - 0x130]
push edx
call fcn.005cccdf
add esp, 0xc
mov eax, dword [ebp - 0x130]
push eax
call fcn.005d097a
add esp, 4
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call fcn.005cccdf
add esp, 0xc
cmp dword [ebp - 0x128], 2
jb 0x4cdaae
mov eax, dword [ebp - 0x130]
push eax
push 1
push 4
lea ecx, [ebp - 0x13c]
push ecx
call fcn.005cd555
add esp, 0x10
mov edx, dword [ebp - 0x1c]
sub edx, 4
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x13c]
cmp eax, dword [ebp - 0x1c]
jl 0x4cd815
push str.Invalid_demo_file.
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2ac]
push ecx
push str.Invalid_demo_file.
mov ecx, dword [ebp + 8]
call fcn.0040b080
mov byte [ebp - 0x1e2], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.004cdc00
mov al, byte [ebp - 0x1e2]
jmp 0x4cdbbd
lea ecx, [ebp - 0x168]
call fcn.00529dc0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x13c]
push edx
call fcn.005b97ec
add esp, 4
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.005cd555
add esp, 0x10
mov ecx, dword [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x168]
call fcn.0052a480
lea ecx, [ebp - 0x168]
call fcn.0052a010
lea ecx, [ebp - 0x168]
call fcn.0052a890
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x138], 0
jmp 0x4cd8ab
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
cmp ecx, dword [ebp - 0x140]
jge 0x4cda13
lea ecx, [ebp - 0x168]
call fcn.0052ab90
movzx edx, al
test edx, edx
jne 0x4cda13
lea eax, [ebp - 0x2c1]
mov dword [ebp - 0x2c0], eax
push 0
push 0
lea ecx, [ebp - 0x208]
call fcn.004079f0
mov dword [ebp - 0x1ec], 0
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x2ec], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x360]
add edx, 0x62c
mov dword [ebp - 0x2e8], edx
mov eax, dword [ebp - 0x2e8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x2d8], ecx
mov edx, dword [ebp - 0x2e8]
push edx
mov eax, dword [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.0054a100
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ecx
mov dword [ebp - 0x2c8], edx
mov eax, dword [ebp - 0x2ec]
push eax
mov ecx, dword [ebp - 0x2c8]
push ecx
mov edx, dword [ebp - 0x2cc]
push edx
mov ecx, dword [ebp - 0x2e8]
call fcn.004e8f60
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x208]
call fcn.004079f0
mov ecx, dword [ebp - 0x360]
add ecx, 0x62c
call fcn.004bfc70
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x168]
call fcn.0052a8f0
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x380]
mov dword [ebp - 0x328], ecx
mov byte [ebp - 4], 7
mov edx, dword [0x611c1c]
push edx
push 0
mov eax, dword [ebp - 0x328]
push eax
mov ecx, dword [ebp - 0x16c]
call fcn.0040aae0
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x224]
call fcn.004079f0
lea ecx, [ebp - 0x168]
call fcn.0052a890
mov ecx, dword [ebp - 0x16c]
mov dword [ecx + 0x1c], eax
jmp 0x4cd89c
mov edx, dword [ebp - 0x138]
cmp edx, dword [ebp - 0x140]
je 0x4cda7b
push str.Invalid_demo_file.
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp - 0x33c]
push eax
push str.Invalid_demo_file.
mov ecx, dword [ebp + 8]
call fcn.0040b080
mov byte [ebp - 0x225], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.00529e50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.004cdc00
mov al, byte [ebp - 0x225]
jmp 0x4cdbbd
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp - 0x22c]
push eax
call fcn.005ccc4a
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.00529e50
mov ecx, dword [ebp - 0x130]
push ecx
push 1
push 4
mov edx, dword [ebp - 0x360]
add edx, 0x5e4
push edx
call fcn.005cd555
add esp, 0x10
mov eax, dword [ebp - 0x1c]
sub eax, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jg 0x4cdb28
push str.Invalid_demo_file.
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x34c]
push ecx
push str.Invalid_demo_file.
mov ecx, dword [ebp + 8]
call fcn.0040b080
mov byte [ebp - 0x22d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.004cdc00
mov al, byte [ebp - 0x22d]
jmp 0x4cdbbd
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005b97ec
add esp, 4
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.005cd555
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x360]
add ecx, 0x5bc
call fcn.0052a480
mov ecx, dword [ebp - 0x360]
add ecx, 0x5bc
call fcn.0052a010
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.005ccc4a
add esp, 4
mov byte [ebp - 0x239], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.004cdc00
mov al, byte [ebp - 0x239]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.005cbcb1
mov esp, ebp
pop ebp
ret 4