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

Disassembly:
push 0xffffffffffffffff
push 0x6545d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x6a9fa4]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a9fa4]
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 0x54b8eb
mov eax, dword [esi + 4]
jmp 0x54b8ee
lea eax, [esi + 4]
push 0x665358
push eax
call fcn.00624db9
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x54b94a
push esi
mov edi, str.Demo_file_not_found:
lea esi, [esp + 0x84]
call fcn.00447340
add esp, 4
push 0xffffffffffffffff
push ebp
push eax
mov ecx, ebx
mov dword [esp + 0x1b4], ebp
call fcn.00405660
cmp dword [esp + 0x98], 0x10
jb 0x54b943
mov eax, dword [esp + 0x84]
push eax
call fcn.0062414c
add esp, 4
xor al, al
jmp 0x54bd7f
mov ecx, ebp
lea eax, [esp + 0x14]
call fcn.0054bdb0
push ebp
push 1
lea ecx, [esp + 0x44]
push 4
push ecx
mov dword [esp + 0x1b8], 1
call fcn.00625156
add esp, 0x10
cmp dword [esp + 0x3c], 0x42beef78
je 0x54b99a
push 0x12
push str.Invalid_demo_file.
mov ecx, ebx
call fcn.00405590
lea eax, [esp + 0x14]
call fcn.0054bdc0
xor al, al
jmp 0x54bd7f
push ebp
push 1
lea edx, [esp + 0x40]
push 4
push edx
call fcn.00625156
push ebp
push 1
lea esi, [edi + 8]
push 4
push esi
call fcn.00625156
mov ecx, dword [esi]
call fcn.005b57d0
push ebp
push 1
lea eax, [esp + 0x44]
push 2
push eax
mov dword [esp + 0x4c], 4
call fcn.00625156
mov eax, dword [esp + 0x4c]
add esp, 0x30
cmp ax, 0xff
jbe 0x54b9eb
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.00625156
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 0x54ba20
sub eax, esi
push eax
mov eax, dword [ecx + 0x14]
lea edx, [esp + 0xa0]
push edx
push eax
push 0
call fcn.004598c0
test eax, eax
je 0x54bb20
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x64]
call fcn.00405520
push eax
mov edi, str.This_demo_file_appears_to_be_for_
lea esi, [esp + 0x84]
mov byte [esp + 0x1ac], 2
call fcn.00447340
add esp, 4
push eax
mov edi, 0x67ed64
lea esi, [esp + 0x44]
mov byte [esp + 0x1ac], 3
call fcn.0041fc00
add esp, 4
push 0xffffffffffffffff
xor ebp, ebp
push ebp
push eax
mov ecx, ebx
mov byte [esp + 0x1b4], 4
call fcn.00405660
mov edi, 0x10
cmp dword [esp + 0x58], edi
jb 0x54babc
mov edx, dword [esp + 0x44]
push edx
call fcn.0062414c
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 0x54bae7
mov eax, dword [esp + 0x84]
push eax
call fcn.0062414c
add esp, 4
cmp dword [esp + 0x78], edi
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebp
mov byte [esp + 0x84], 0
jb 0x54bb10
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0062414c
add esp, 4
lea eax, [esp + 0x14]
call fcn.0054bdc0
xor al, al
jmp 0x54bd7f
push ebp
call fcn.006257d9
add esp, 4
push 2
push 0
push ebp
mov ebx, eax
call fcn.006255bc
add esp, 0xc
push ebp
call fcn.006257d9
add esp, 4
push 0
mov esi, eax
push ebx
push ebp
sub esi, ebx
call fcn.006255bc
add esp, 0xc
cmp dword [esp + 0x38], 2
jb 0x54bd1f
push ebp
push 1
lea edx, [esp + 0x20]
push 4
push edx
call fcn.00625156
sub esi, 4
add esp, 0x10
cmp dword [esp + 0x18], esi
mov dword [esp + 0x30], esi
jl 0x54bb99
mov ecx, dword [esp + 0x24]
push str.Invalid_demo_file.
call fcn.00405560
lea eax, [esp + 0x14]
call fcn.0054bdc0
xor al, al
jmp 0x54bd7f
lea eax, [esp + 0x40]
call fcn.005ddc40
mov byte [esp + 0x1a8], 5
mov eax, dword [esp + 0x18]
push eax
call fcn.00612a1b
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.00625156
mov edi, dword [esp + 0x28]
add esp, 0x10
lea edx, [esp + 0x40]
push edx
call fcn.005de0d0
lea eax, [esp + 0x40]
call fcn.005ddd80
call fcn.005de3a0
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebx
jle 0x54bcc6
jmp 0x54bc02
xor ebx, ebx
lea eax, [esp + 0x40]
call fcn.005de570
test al, al
jne 0x54bcc6
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.0055d090
mov bl, 5
lea esi, [esp + 0x60]
mov byte [esp + 0x1a8], bl
call fcn.00548c80
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
cmp esi, eax
jne 0x54bc65
call fcn.0062472f
cmp esi, dword [edi + 4]
jne 0x54bc6f
call fcn.0062472f
lea edi, [esp + 0x60]
lea ecx, [esp + 0x40]
add esi, 8
call fcn.005de3e0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [esp + 0x1b4], 7
call fcn.00405660
mov ecx, edi
mov byte [esp + 0x1a8], bl
call fcn.00405480
lea eax, [esp + 0x40]
call fcn.005de3a0
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 0x54bc00
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x20], eax
je 0x54bcf9
mov ecx, dword [esp + 0x24]
push 0x12
push str.Invalid_demo_file.
call fcn.00405590
lea ecx, [esp + 0x40]
call fcn.005ddc60
lea eax, [esp + 0x14]
call fcn.0054bdc0
xor al, al
jmp 0x54bd7f
mov ecx, dword [esp + 0x34]
sub esi, dword [esp + 0x18]
push ecx
call fcn.00624291
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x1a8], 1
call fcn.005ddc60
mov edi, dword [esp + 0x28]
push ebp
push 1
lea edx, [edi + 0x56c]
push 4
push edx
call fcn.00625156
sub esi, 4
add esp, 0x10
test esi, esi
jle 0x54bb7b
push esi
call fcn.00612a1b
add esp, 4
push ebp
push esi
mov ebx, eax
push 1
push ebx
call fcn.00625156
add esp, 0x10
lea ebp, [edi + 0x54c]
push ebp
mov edi, esi
call fcn.005de0d0
mov eax, ebp
call fcn.005ddd80
push ebx
call fcn.00624291
add esp, 4
lea eax, [esp + 0x14]
call fcn.0054bdc0
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.00626d59
add esp, 0x198
ret