Function at 0x5456e0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6494f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x699fe8]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x548], 0x10
lea esi, [edi + 0x530]
mov ebx, edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
jb 0x54573b
mov eax, dword [esi + 4]
jmp 0x54573e
lea eax, [esi + 4]
push 0x658580
push eax
call fcn.0061ceb1
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x54579a
push esi
mov edi, str.Demo_file_not_found:
lea esi, [esp + 0x84]
call fcn.00445160
add esp, 4
push 0xffffffffffffffff
push ebp
push eax
mov ecx, ebx
mov dword [esp + 0x1b4], ebp
call fcn.00403e20
cmp dword [esp + 0x98], 0x10
jb 0x545793
mov eax, dword [esp + 0x84]
push eax
call fcn.0061c19a
add esp, 4
xor al, al
jmp 0x545bcf
mov ecx, ebp
lea eax, [esp + 0x14]
call fcn.00545c00
push ebp
push 1
lea ecx, [esp + 0x44]
push 4
push ecx
mov dword [esp + 0x1b8], 1
call fcn.0061d24e
add esp, 0x10
cmp dword [esp + 0x3c], 0x42beef78
je 0x5457ea
push 0x12
push str.Invalid_demo_file.
mov ecx, ebx
call fcn.00404330
lea eax, [esp + 0x14]
call fcn.00545c10
xor al, al
jmp 0x545bcf
push ebp
push 1
lea edx, [esp + 0x40]
push 4
push edx
call fcn.0061d24e
push ebp
push 1
lea esi, [edi + 8]
push 4
push esi
call fcn.0061d24e
mov ecx, dword [esi]
call fcn.005af420
push ebp
push 1
lea eax, [esp + 0x44]
push 2
push eax
mov dword [esp + 0x4c], 4
call fcn.0061d24e
mov eax, dword [esp + 0x4c]
add esp, 0x30
cmp ax, 0xff
jbe 0x54583b
mov eax, 0xff
mov dword [esp + 0x1c], eax
movzx ecx, ax
push ebp
push ecx
lea edx, [esp + 0xa4]
push 1
push edx
call fcn.0061d24e
movzx eax, word [esp + 0x2c]
mov byte [esp + eax + 0xac], 0
lea eax, [esp + 0xac]
add esp, 0x10
lea ecx, [edi + 0x398]
lea esi, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x545870
sub eax, esi
push eax
mov eax, dword [ecx + 0x14]
lea edx, [esp + 0xa0]
push edx
push eax
push 0
call fcn.004565a0
test eax, eax
je 0x545970
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x64]
call fcn.00404450
push eax
mov edi, str.This_demo_file_appears_to_be_for_
lea esi, [esp + 0x84]
mov byte [esp + 0x1ac], 2
call fcn.00445160
add esp, 4
push eax
mov edi, 0x6708e0
lea esi, [esp + 0x44]
mov byte [esp + 0x1ac], 3
call fcn.0041e290
add esp, 4
push 0xffffffffffffffff
xor ebp, ebp
push ebp
push eax
mov ecx, ebx
mov byte [esp + 0x1b4], 4
call fcn.00403e20
mov edi, 0x10
cmp dword [esp + 0x58], edi
jb 0x54590c
mov edx, dword [esp + 0x44]
push edx
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x98], edi
mov esi, 0xf
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
jb 0x545937
mov eax, dword [esp + 0x84]
push eax
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x78], edi
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebp
mov byte [esp + 0x84], 0
jb 0x545960
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0061c19a
add esp, 4
lea eax, [esp + 0x14]
call fcn.00545c10
xor al, al
jmp 0x545bcf
push ebp
call fcn.0061d948
add esp, 4
push 2
push 0
push ebp
mov ebx, eax
call fcn.0061d72b
add esp, 0xc
push ebp
call fcn.0061d948
add esp, 4
push 0
mov esi, eax
push ebx
push ebp
sub esi, ebx
call fcn.0061d72b
add esp, 0xc
cmp dword [esp + 0x38], 2
jb 0x545b6f
push ebp
push 1
lea edx, [esp + 0x20]
push 4
push edx
call fcn.0061d24e
sub esi, 4
add esp, 0x10
cmp dword [esp + 0x18], esi
mov dword [esp + 0x30], esi
jl 0x5459e9
mov ecx, dword [esp + 0x24]
push str.Invalid_demo_file.
call fcn.00404300
lea eax, [esp + 0x14]
call fcn.00545c10
xor al, al
jmp 0x545bcf
lea eax, [esp + 0x40]
call fcn.005d60a0
mov byte [esp + 0x1a8], 5
mov eax, dword [esp + 0x18]
push eax
call fcn.0060ae9b
mov ecx, dword [esp + 0x1c]
add esp, 4
push ebp
push ecx
mov ebx, eax
push 1
push ebx
mov dword [esp + 0x44], ebx
call fcn.0061d24e
mov edi, dword [esp + 0x28]
add esp, 0x10
lea edx, [esp + 0x40]
push edx
call fcn.005d6530
lea eax, [esp + 0x40]
call fcn.005d61e0
call fcn.005d6800
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebx
jle 0x545b16
jmp 0x545a52
xor ebx, ebx
lea eax, [esp + 0x40]
call fcn.005d69d0
test al, al
jne 0x545b16
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x7c], ebx
mov edi, dword [esp + 0x28]
add edi, 0x5a0
lea eax, [esp + 0x60]
mov ebx, edi
mov byte [esp + 0x1a8], 6
call fcn.00556c00
mov bl, 5
lea esi, [esp + 0x60]
mov byte [esp + 0x1a8], bl
call fcn.00552d40
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
cmp esi, eax
jne 0x545ab5
call fcn.0061c63f
cmp esi, dword [edi + 4]
jne 0x545abf
call fcn.0061c63f
lea edi, [esp + 0x60]
lea ecx, [esp + 0x40]
add esi, 8
call fcn.005d6840
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [esp + 0x1b4], 7
call fcn.00403e20
mov ecx, edi
mov byte [esp + 0x1a8], bl
call fcn.00404420
lea eax, [esp + 0x40]
call fcn.005d6800
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
jl 0x545a50
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x20], eax
je 0x545b49
mov ecx, dword [esp + 0x24]
push 0x12
push str.Invalid_demo_file.
call fcn.00404330
lea ecx, [esp + 0x40]
call fcn.005d60c0
lea eax, [esp + 0x14]
call fcn.00545c10
xor al, al
jmp 0x545bcf
mov ecx, dword [esp + 0x34]
sub esi, dword [esp + 0x18]
push ecx
call fcn.0061c19f
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x1a8], 1
call fcn.005d60c0
mov edi, dword [esp + 0x28]
push ebp
push 1
lea edx, [edi + 0x56c]
push 4
push edx
call fcn.0061d24e
sub esi, 4
add esp, 0x10
test esi, esi
jle 0x5459cb
push esi
call fcn.0060ae9b
add esp, 4
push ebp
push esi
mov ebx, eax
push 1
push ebx
call fcn.0061d24e
add esp, 0x10
lea ebp, [edi + 0x54c]
push ebp
mov edi, esi
call fcn.005d6530
mov eax, ebp
call fcn.005d61e0
push ebx
call fcn.0061c19f
add esp, 4
lea eax, [esp + 0x14]
call fcn.00545c10
mov al, 1
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0061efd1
add esp, 0x198
ret