Function at 0x4be5e3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
cmp dword [ebp + 0xc], 0
jge 0x4be5f8
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x44]
cmp dword [edx + ecx*4 + 0xe85e8], 0
jne 0x4bea72
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
jmp 0x4be625
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xff
jge 0x4be681
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x18]
add edx, ecx
mov eax, dword [ebp - 0x44]
movsx ecx, byte [eax + edx + 0x15e8]
cmp ecx, 0x2e
jne 0x4be67f
push 0x6166f0
mov edx, dword [ebp + 8]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x18]
add eax, edx
mov ecx, dword [ebp - 0x44]
lea edx, [ecx + eax + 0x15e8]
push edx
call fcn.005c5aa0
add esp, 8
test eax, eax
jne 0x4be67f
mov dword [ebp - 0x1c], 1
jmp 0x4be681
jmp 0x4be61c
mov dword [ebp - 0x10], 0
push 0
push 0x8000
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x44]
lea edx, [ecx + eax + 0x15e8]
push edx
call fcn.005c6907
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4be6bb
xor eax, eax
jmp 0x4bea74
mov byte [ebp - 8], 0
xor eax, eax
mov dword [ebp - 7], eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.005c663f
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [0x636e48]
mov eax, dword [edx + 0xb8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0x12
mov dword [ebp - 0x14], 0xff000000
cmp dword [ebp - 0x1c], 0
jne 0x4be7fa
mov ecx, dword [ebp - 0xc]
sub ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x12
push edx
call fcn.005c5dd3
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.005c66c9
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.005c66c9
add esp, 0xc
push 0x12
mov eax, dword [ebp - 0x44]
add eax, 0x304
push eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
push ecx
call fcn.005c5f60
add esp, 0xc
mov edx, dword [ebp - 0x24]
push edx
call fcn.005c655f
add esp, 4
mov eax, dword [ebp + 8]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x44]
movsx edx, byte [ecx + eax + 0x16e7]
cmp edx, 0x41
jne 0x4be7af
mov eax, dword [0x636e48]
cmp dword [eax + 0x354], 1
je 0x4be79d
mov ecx, dword [0x636e48]
cmp dword [ecx + 0xb0], 0x10
jne 0x4be7a6
mov dword [ebp - 0x20], 0x1a
jmp 0x4be7ad
mov dword [ebp - 0x20], 0
jmp 0x4be7f5
mov edx, dword [ebp + 8]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x44]
movsx ecx, byte [eax + edx + 0x16e7]
cmp ecx, 0x61
jne 0x4be7f5
mov edx, dword [0x636e48]
cmp dword [edx + 0x354], 1
je 0x4be7e5
mov eax, dword [0x636e48]
cmp dword [eax + 0xb0], 0x10
jne 0x4be7ee
mov dword [ebp - 0x20], 0x19
jmp 0x4be7f5
mov dword [ebp - 0x20], 0
jmp 0x4be9da
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.005c5dd3
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2f], ecx
push 1
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.005c66c9
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.005c66c9
add esp, 0xc
push 3
mov ecx, dword [ebp - 0x44]
add ecx, 0x317
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.005c5f60
add esp, 0xc
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax + 0x54]
cmp ecx, 0x32
jne 0x4be89a
push 0x6166f8
lea edx, [ebp - 0x30]
push edx
call fcn.005c5b24
add esp, 8
push 4
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
push ecx
call fcn.005c5f60
add esp, 0xc
jmp 0x4be8c0
push 0x616700
lea edx, [ebp - 0x30]
push edx
call fcn.005c5b24
add esp, 8
push 4
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
push ecx
call fcn.005c5f60
add esp, 0xc
mov edx, dword [ebp - 0x24]
push edx
call fcn.005c655f
add esp, 4
mov eax, dword [0x636e48]
cmp dword [eax + 0x360], 1
jne 0x4be905
mov ecx, dword [0x636e48]
cmp dword [ecx + 0x364], 1
jne 0x4be905
cmp dword [0x6103fc], 1
jne 0x4be905
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
jmp 0x4be9da
mov dword [ebp - 0x14], 0
mov edx, dword [0x636e48]
mov eax, dword [edx + 0xb8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x44]
movsx eax, byte [edx + ecx + 0x16e7]
cmp eax, 0x41
je 0x4be966
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x44]
movsx eax, byte [edx + ecx + 0x16e7]
cmp eax, 0x61
je 0x4be966
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x44]
movsx eax, byte [edx + ecx + 0x16e7]
cmp eax, 0x43
jne 0x4be994
mov ecx, dword [0x636e48]
cmp dword [ecx + 0x354], 1
je 0x4be984
mov edx, dword [0x636e48]
cmp dword [edx + 0xb0], 0x10
jne 0x4be98d
mov dword [ebp - 0x20], 0x1a
jmp 0x4be994
mov dword [ebp - 0x20], 0x15
mov eax, dword [ebp + 8]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x44]
movsx edx, byte [ecx + eax + 0x16e7]
cmp edx, 0x4e
jne 0x4be9da
mov eax, dword [0x636e48]
cmp dword [eax + 0x354], 1
je 0x4be9ca
mov ecx, dword [0x636e48]
cmp dword [ecx + 0xb0], 0x10
jne 0x4be9d3
mov dword [ebp - 0x20], 0x18
jmp 0x4be9da
mov dword [ebp - 0x20], 0x16
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x44]
lea ecx, [eax + edx*4 + 0xe85e8]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
push 1
push 1
push 1
mov eax, dword [ebp - 0x20]
push eax
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [0x636e48]
mov ecx, dword [eax + 0x10c]
push ecx
call fcn.00585c49
test eax, eax
jge 0x4bea59
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x44]
cmp dword [eax + edx*4 + 0xe85e8], 0
je 0x4bea43
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x44]
mov dword [edx + ecx*4 + 0xe85e8], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.005c554a
add esp, 4
xor eax, eax
jmp 0x4bea74
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.005c554a
add esp, 4
mov eax, 1
jmp 0x4bea74
xor eax, eax
mov esp, ebp
pop ebp
ret 8