Function at 0x4befde
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + eax*4 + 0xe8de8], 0
jne 0x4bf50b
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x4bf014
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0xff
jge 0x4bf070
mov eax, dword [ebp + 8]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx + ecx + 0x225e8]
cmp eax, 0x2e
jne 0x4bf06e
push 0x6167f8
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + edx + 0x225e8]
push ecx
call fcn.005c5aa0
add esp, 8
test eax, eax
jne 0x4bf06e
mov dword [ebp - 0x20], 1
jmp 0x4bf070
jmp 0x4bf00b
mov dword [ebp - 0x2c], 0x12
mov dword [ebp - 0x18], 0xff000000
mov dword [ebp - 0x10], 0
push 0
push 0x8000
mov edx, dword [ebp + 8]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + edx + 0x225e8]
push ecx
call fcn.005c6907
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4bf0b8
xor eax, eax
jmp 0x4bf50d
mov byte [ebp - 8], 0
xor edx, edx
mov dword [ebp - 7], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.005c663f
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [0x636e48]
mov edx, dword [ecx + 0xb8]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x20], 0
jne 0x4bf1eb
mov eax, dword [ebp - 0xc]
sub eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x2c]
push ecx
call fcn.005c5dd3
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], edx
push 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005c66c9
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005c66c9
add esp, 0xc
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x4c]
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 - 0x28]
push edx
call fcn.005c655f
add esp, 4
mov eax, dword [ebp + 8]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx + eax + 0x226e7]
cmp edx, 0x41
jne 0x4bf1a0
mov eax, dword [0x636e48]
cmp dword [eax + 0x354], 1
je 0x4bf18e
mov ecx, dword [0x636e48]
cmp dword [ecx + 0xb0], 0x10
jne 0x4bf197
mov dword [ebp - 0x24], 0x1a
jmp 0x4bf19e
mov dword [ebp - 0x24], 0
jmp 0x4bf1e6
mov edx, dword [ebp + 8]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax + edx + 0x226e7]
cmp ecx, 0x61
jne 0x4bf1e6
mov edx, dword [0x636e48]
cmp dword [edx + 0x354], 1
je 0x4bf1d6
mov eax, dword [0x636e48]
cmp dword [eax + 0xb0], 0x10
jne 0x4bf1df
mov dword [ebp - 0x24], 0x19
jmp 0x4bf1e6
mov dword [ebp - 0x24], 0
jmp 0x4bf3f0
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.005c5dd3
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
push 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x28]
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 - 0x28]
push edx
call fcn.005c66c9
add esp, 0xc
push 3
mov eax, dword [ebp - 0x4c]
add eax, 0x317
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005c5f60
add esp, 0xc
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx + 0x54]
cmp eax, 0x32
jne 0x4bf281
push 0x616800
lea ecx, [ebp - 0x34]
push ecx
call fcn.005c5b24
add esp, 8
push 4
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x54
push eax
call fcn.005c5f60
add esp, 0xc
jmp 0x4bf2a7
push 0x616808
lea ecx, [ebp - 0x34]
push ecx
call fcn.005c5b24
add esp, 8
push 4
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x54
push eax
call fcn.005c5f60
add esp, 0xc
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005c655f
add esp, 4
mov edx, dword [0x636e48]
cmp dword [edx + 0x360], 1
jne 0x4bf2ec
mov eax, dword [0x636e48]
cmp dword [eax + 0x364], 1
jne 0x4bf2ec
cmp dword [0x6103fc], 1
jne 0x4bf2ec
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
jmp 0x4bf3f0
mov dword [ebp - 0x18], 0
mov ecx, dword [0x636e48]
mov edx, dword [ecx + 0xb8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx + eax + 0x226e7]
cmp edx, 0x41
je 0x4bf334
mov eax, dword [ebp + 8]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx + eax + 0x226e7]
cmp edx, 0x43
jne 0x4bf363
mov eax, dword [0x636e48]
cmp dword [eax + 0x354], 1
je 0x4bf351
mov ecx, dword [0x636e48]
cmp dword [ecx + 0xb0], 0x10
jne 0x4bf35a
mov dword [ebp - 0x24], 0x1a
jmp 0x4bf361
mov dword [ebp - 0x24], 0x15
jmp 0x4bf3a9
mov edx, dword [ebp + 8]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax + edx + 0x226e7]
cmp ecx, 0x61
jne 0x4bf3a9
mov edx, dword [0x636e48]
cmp dword [edx + 0x354], 1
je 0x4bf399
mov eax, dword [0x636e48]
cmp dword [eax + 0xb0], 0x10
jne 0x4bf3a2
mov dword [ebp - 0x24], 0x19
jmp 0x4bf3a9
mov dword [ebp - 0x24], 0x15
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx + ecx + 0x226e7]
cmp eax, 0x4e
jne 0x4bf3f0
mov ecx, dword [0x636e48]
cmp dword [ecx + 0x354], 1
je 0x4bf3e0
mov edx, dword [0x636e48]
cmp dword [edx + 0xb0], 0x10
jne 0x4bf3e9
mov dword [ebp - 0x24], 0x18
jmp 0x4bf3f0
mov dword [ebp - 0x24], 0x16
mov dword [ebp - 0x14], 1
cmp dword [0x6103f8], 0xa
jge 0x4bf407
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x4bf482
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x4c]
lea edx, [ecx + eax*4 + 0xe8de8]
push edx
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
push 1
push 1
push 1
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [0x636e48]
mov edx, dword [ecx + 0x10c]
push edx
call fcn.00585c49
test eax, eax
jge 0x4bf480
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + eax*4 + 0xe8de8], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.005c554a
add esp, 4
xor eax, eax
jmp 0x4bf50d
jmp 0x4bf4f2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x4c]
lea eax, [edx + ecx*4 + 0xe8de8]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
push 5
push 5
push 1
mov edx, dword [ebp - 0x24]
push edx
push 0
push 4
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [0x636e48]
mov eax, dword [edx + 0x10c]
push eax
call fcn.00585c49
test eax, eax
jge 0x4bf4f2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x4c]
mov dword [edx + ecx*4 + 0xe8de8], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.005c554a
add esp, 4
xor eax, eax
jmp 0x4bf50d
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.005c554a
add esp, 4
mov eax, 1
jmp 0x4bf50d
xor eax, eax
mov esp, ebp
pop ebp
ret 4