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

Disassembly:
push 0xffffffffffffffff
push 0x5c7b68
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x61a654]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1b0]
mov ebp, ecx
cmp dword [ebp + 0x5b0], 0x10
lea esi, [ebp + 0x598]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebx
jb 0x460450
mov eax, dword [esi + 4]
jmp 0x460453
lea eax, [esi + 4]
push 0x5dc094
push eax
call fcn.005a1d92
mov edi, eax
add esp, 8
test edi, edi
jne 0x4604b0
push esi
lea eax, [esp + 0x84]
push str.Demo_file_not_found:
push eax
call fcn.00456ff0
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
mov ecx, ebx
mov dword [esp + 0x1b4], edi
call fcn.00401620
cmp dword [esp + 0x98], 0x10
jb 0x4604a9
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0059e6bb
add esp, 4
xor al, al
jmp 0x4608cf
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.0044eb50
push edi
push 1
lea edx, [esp + 0x34]
push 4
push edx
mov dword [esp + 0x1b8], 1
call fcn.005a2456
add esp, 0x10
cmp dword [esp + 0x2c], 0x42beef78
je 0x460500
push 0x12
push str.Invalid_demo_file.
mov ecx, ebx
call fcn.00401590
lea eax, [esp + 0x14]
call fcn.0044eb60
xor al, al
jmp 0x4608cf
push edi
push 1
lea eax, [esp + 0x38]
push 4
push eax
call fcn.005a2456
push edi
push 1
lea esi, [ebp + 8]
push 4
push esi
call fcn.005a2456
mov ecx, dword [esi]
push ecx
call fcn.00468b30
push edi
push 1
lea edx, [esp + 0x48]
push 2
push edx
mov dword [esp + 0x50], 4
call fcn.005a2456
mov eax, dword [esp + 0x50]
mov ecx, 0xff
add esp, 0x34
cmp ax, cx
jbe 0x460553
mov eax, ecx
mov dword [esp + 0x1c], eax
movzx edx, ax
push edi
push edx
lea eax, [esp + 0xa4]
push 1
push eax
call fcn.005a2456
movzx ecx, word [esp + 0x2c]
lea eax, [esp + 0xac]
mov byte [esp + ecx + 0xac], 0
add esp, 0x10
lea ecx, [ebp + 0x3cc]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x460587
sub eax, esi
push eax
mov eax, dword [ecx + 0x14]
lea edx, [esp + 0xa0]
push edx
push eax
push 0
call fcn.00403f20
test eax, eax
je 0x460683
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x64]
call fcn.004013c0
push eax
lea edx, [esp + 0x84]
push str.This_demo_file_appears_to_be_for_
push edx
mov byte [esp + 0x1b4], 2
call fcn.00456ff0
push 0x5dc50c
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x1c0], 3
call fcn.00456db0
add esp, 0x18
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [esp + 0x1b4], 4
call fcn.00401620
mov edi, 0x10
cmp dword [esp + 0x50], edi
jb 0x46061f
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0059e6bb
add esp, 4
xor ebx, ebx
mov esi, 0xf
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x98], edi
jb 0x46064b
mov edx, dword [esp + 0x84]
push edx
call fcn.0059e6bb
add esp, 4
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x78], edi
jb 0x460673
mov eax, dword [esp + 0x64]
push eax
call fcn.0059e6bb
add esp, 4
lea eax, [esp + 0x14]
call fcn.0044eb60
xor al, al
jmp 0x4608cf
push edi
call fcn.005a2148
push 2
push 0
push edi
mov ebx, eax
call fcn.005a1f26
push edi
call fcn.005a2148
push 0
mov esi, eax
push ebx
push edi
sub esi, ebx
call fcn.005a1f26
add esp, 0x20
cmp dword [esp + 0x30], 2
jb 0x460858
push edi
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.005a2456
sub esi, 4
add esp, 0x10
cmp dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
jl 0x4606f3
mov ecx, dword [esp + 0x20]
push str.Invalid_demo_file.
call fcn.0040ad00
lea eax, [esp + 0x14]
call fcn.0044eb60
xor al, al
jmp 0x4608cf
lea ecx, [esp + 0x38]
call fcn.00477280
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x1ac], 5
call fcn.0059d93d
mov ebx, eax
mov eax, dword [esp + 0x1c]
push edi
push eax
push 1
push ebx
mov dword [esp + 0x48], ebx
call fcn.005a2456
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push ecx
push ebx
lea ecx, [esp + 0x40]
call fcn.00479360
lea ecx, [esp + 0x38]
call fcn.00468d40
lea ecx, [esp + 0x38]
call fcn.00469960
mov ebx, eax
xor ebp, ebp
test ebx, ebx
jle 0x4607fd
lea ecx, [esp + 0x38]
call fcn.00468d60
test al, al
jne 0x4607fd
xor eax, eax
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], eax
mov byte [esp + 0x64], al
mov dword [esp + 0x7c], eax
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x60]
add esi, 0x624
push edx
mov ecx, esi
mov byte [esp + 0x1ac], 6
call fcn.0045fb20
lea ecx, [esp + 0x60]
mov byte [esp + 0x1a8], 5
call fcn.00562650
mov ecx, esi
call fcn.004a1f00
mov esi, eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x3c]
call fcn.0046d1d0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [esp + 0x1b4], 7
call fcn.00401620
lea ecx, [esp + 0x60]
mov byte [esp + 0x1a8], 5
call fcn.00401400
lea ecx, [esp + 0x38]
call fcn.00469960
inc ebp
cmp ebp, ebx
mov dword [esi + 0x1c], eax
mov esi, dword [esp + 0x24]
jl 0x460752
cmp ebp, ebx
je 0x460832
mov ecx, dword [esp + 0x20]
push 0x12
push str.Invalid_demo_file.
call fcn.00401590
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a8], 1
call fcn.0046bcc0
lea eax, [esp + 0x14]
call fcn.0044eb60
xor al, al
jmp 0x4608cf
mov ecx, dword [esp + 0x34]
sub esi, dword [esp + 0x18]
push ecx
call fcn.005a2f45
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a8], 1
call fcn.0046bcc0
mov ebp, dword [esp + 0x28]
push edi
push 1
lea edx, [ebp + 0x5dc]
push 4
push edx
call fcn.005a2456
sub esi, 4
add esp, 0x10
test esi, esi
jg 0x460890
mov ecx, dword [esp + 0x20]
push 0x12
push str.Invalid_demo_file.
call fcn.00401590
lea eax, [esp + 0x14]
call fcn.0044eb60
xor al, al
jmp 0x4608cf
push esi
call fcn.0059d93d
push edi
push esi
mov ebx, eax
push 1
push ebx
call fcn.005a2456
add esp, 0x14
push esi
lea edi, [ebp + 0x5b4]
push ebx
mov ecx, edi
call fcn.00479360
mov ecx, edi
call fcn.00468d40
push ebx
call fcn.005a2f45
add esp, 4
lea eax, [esp + 0x14]
call fcn.0044eb60
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.0059e619
add esp, 0x198
ret 4