Function at 0x10005c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100611c3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x1007c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp + 8]
push 0x1006d050
push eax
mov dword [ebp - 0x78], eax
call fcn.1003aa6f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100062ae
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
push 2
push 0
push ebx
mov dword [ebp - 4], 0
call fcn.1003a0f8
add esp, 0xc
push ebx
call fcn.10033e3b
add esp, 4
mov esi, eax
push 0
push 2
push ebx
call fcn.1003a0f8
add esi, 0xfffffffe
mov dword [ebp - 0x34], 7
mov eax, 0
mov dword [ebp - 0x38], 0
add esp, 0xc
mov word [ebp - 0x48], ax
shr esi, 1
mov byte [ebp - 4], 1
jne 0x10005d22
mov dword [ebp - 0x38], esi
mov word [ebp + esi*2 - 0x48], ax
jmp 0x10005d2d
push 0
push esi
lea ecx, [ebp - 0x48]
call fcn.100191b0
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push ebx
cmovae eax, dword [ebp - 0x48]
push esi
push 2
push eax
call fcn.1003ac52
add esp, 0x10
xor esi, esi
push 2
push esi
push 0x1006d058
lea ecx, [ebp - 0x48]
call fcn.10018ab0
mov edi, eax
lea eax, [ebp - 0x2c]
cmp edi, 0xffffffff
je 0x10005d9b
mov ecx, edi
sub ecx, esi
push ecx
push esi
push eax
lea ecx, [ebp - 0x48]
call fcn.10017c10
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.10017820
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x10005d96
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.1001b3d0
lea esi, [edi + 2]
jmp 0x10005d47
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x48]
call fcn.10017c10
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 3
call fcn.10017820
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x10005dcd
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.1001b3d0
push ebx
call fcn.10034290
mov ecx, dword [ebp - 0x70]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x74]
add esp, 4
imul ecx
xor ebx, ebx
mov dword [ebp - 0x4c], 7
sar edx, 2
lea ecx, [ebp - 0x60]
mov eax, edx
mov dword [ebp - 0x80], ebx
shr eax, 0x1f
xor edi, edi
add eax, edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x64], eax
xor eax, eax
push 1
push 0x1006d060
mov word [ebp - 0x60], ax
call fcn.10018f90
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x68]
cmp word [edx], bx
jne 0x10005e26
xor ecx, ecx
jmp 0x10005e3f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005e30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x60]
call fcn.10017ca0
push 1
push 0x1006d064
lea ecx, [ebp - 0x60]
call fcn.10017ca0
mov eax, dword [ebp - 0x74]
mov esi, eax
cmp eax, dword [ebp - 0x70]
je 0x10005eca
test ebx, ebx
jne 0x10005e93
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
cmp dword [esi + 0x14], 8
jb 0x10005e7b
mov ecx, dword [esi]
jmp 0x10005e7d
mov ecx, esi
push eax
push ecx
call fcn.10033ebe
add esp, 8
test eax, eax
jne 0x10005ec1
lea ebx, [edi + 1]
mov dword [ebp - 0x80], ebx
jmp 0x10005ec1
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x10005e9f
mov eax, dword [esi]
jmp 0x10005ea1
mov eax, esi
cmp word [eax], 0x5b
jne 0x10005ec1
mov edx, dword [esi + 0x10]
cmp ecx, 8
jb 0x10005eb3
mov eax, dword [esi]
jmp 0x10005eb5
mov eax, esi
cmp word [eax + edx*2 - 2], 0x5d
je 0x10005fd1
add esi, 0x18
inc edi
cmp esi, dword [ebp - 0x70]
jne 0x10005e62
mov edx, dword [ebp - 0x64]
mov ecx, edx
cmp edx, ebx
jle 0x10005ef4
lea eax, [edx + edx*2]
mov edx, dword [ebp - 0x74]
lea eax, [eax + 2]
lea eax, [edx + eax*8]
nop
cmp dword [eax], 0
jne 0x10005ef4
lea edx, [ecx - 1]
sub eax, 0x18
mov ecx, edx
mov dword [ebp - 0x64], edx
cmp ecx, ebx
jg 0x10005ee0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
call fcn.1001c180
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x8c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x10005f92
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x1c], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
call fcn.10019090
mov byte [ebp - 0x18], 0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x30]
push dword [ebp - 0x78]
push eax
push ecx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x88]
call fcn.1001edb0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x10005f8b
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.1001b3d0
add esi, 0x18
cmp esi, edi
jne 0x10005f30
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 7
mov dword [ebp - 0x7c], ebx
cmp ebx, eax
jg 0x100060c7
mov ecx, dword [ebp - 0x74]
nop dword [eax]
lea eax, [ebx + ebx*2]
cmp dword [ecx + eax*8 + 0x14], 8
lea edi, [ecx + eax*8]
jb 0x10005fdc
mov eax, dword [edi]
jmp 0x10005fde
lea edx, [edi - 1]
mov dword [ebp - 0x64], edx
jmp 0x10005ecd
mov eax, edi
cmp word [eax], 0x3b
je 0x100060ac
cmp dword [edi + 0x14], 8
jb 0x10005ff2
mov eax, dword [edi]
jmp 0x10005ff4
mov eax, edi
cmp word [eax], 0x23
je 0x100060ac
cmp dword [edi + 0x10], 0
je 0x100060ac
mov eax, dword [ebp - 0x88]
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x1000609a
mov ebx, eax
nop dword [eax]
push edi
lea ecx, [esi + 0x10]
call fcn.1001ea80
test eax, eax
jns 0x10006032
mov esi, dword [esi + 8]
jmp 0x10006036
mov ebx, esi
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x10006020
cmp ebx, dword [ebp - 0x88]
mov dword [ebp - 0x68], ebx
mov ebx, dword [ebp - 0x80]
je 0x1000609a
mov eax, dword [ebp - 0x68]
mov ecx, edi
add eax, 0x10
push eax
call fcn.1001ea80
test eax, eax
js 0x1000609a
push edi
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x88]
call fcn.1001f5f0
mov eax, dword [ebp - 0x9c]
cmp byte [eax + 0x28], 0
jne 0x1000609a
push edi
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x88]
call fcn.1001f5f0
mov eax, dword [ebp - 0x94]
mov byte [eax + 0x28], 1
jmp 0x100060a9
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x20]
call fcn.10016770
mov ebx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x64]
inc ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
cmp ebx, eax
jle 0x10005fc0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x68], ecx
mov ebx, dword [ebp - 0x20]
cmp esi, ebx
je 0x10006117
mov edi, dword [ebp - 0x70]
mov eax, dword [esi - 4]
add esi, 0xfffffffc
mov ecx, dword [ebp - 0x74]
mov edx, edi
mov byte [ebp - 0x80], 0
push dword [ebp - 0x80]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
push eax
lea ecx, [eax + 0x18]
call fcn.1001f6a0
mov edx, dword [ebp - 0x70]
add esp, 8
add edi, 0xffffffe8
push dword [ebp - 0x78]
push ecx
mov ecx, edi
call fcn.1001f8a0
mov eax, dword [ebp - 0x64]
add esp, 8
dec eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x64], eax
cmp esi, ebx
jne 0x100060d1
mov edx, dword [ebp - 0x8c]
mov edi, dword [edx + 4]
mov esi, dword [edx]
cmp esi, edi
je 0x10006170
lea ebx, [eax + eax*2]
shl ebx, 3
nop dword [eax]
push esi
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x88]
call fcn.1001f5f0
mov eax, dword [ebp - 0x94]
cmp byte [eax + 0x28], 0
jne 0x10006169
mov eax, dword [ebp - 0x74]
add ebx, 0x18
push esi
push ecx
add eax, ebx
lea ecx, [ebp - 0x74]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.10018460
add esi, 0x18
cmp esi, edi
jne 0x10006130
push 0x1006d068
push dword [ebp - 0x78]
call fcn.1003aa6f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100061eb
mov eax, dword [ebp - 0x74]
xor edi, edi
mov ecx, dword [ebp - 0x70]
mov esi, eax
cmp eax, ecx
je 0x100061e2
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x78], eax
nop word [eax + eax]
inc edi
cmp dword [esi + 0x14], 8
jb 0x100061bb
mov eax, dword [esi]
jmp 0x100061bd
mov eax, esi
push ebx
push eax
call fcn.10039da6
add esp, 8
cmp edi, dword [ebp - 0x78]
je 0x100061da
push ebx
push 0x1006d088
call fcn.10039da6
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x70]
jne 0x100061b0
push ebx
call fcn.10034290
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10006201
mov ecx, dword [ebp - 0x68]
sub ecx, eax
sar ecx, 2
push ecx
push eax
call fcn.10019ea0
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x88]
push eax
push dword [eax]
lea eax, [ebp - 0x78]
push eax
call fcn.1001afe0
push dword [ebp - 0x88]
call fcn.10027b79
mov eax, dword [ebp - 0x4c]
add esp, 4
cmp eax, 8
jb 0x1000623c
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.1001b3d0
xor eax, eax
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], 0
cmp eax, 8
jb 0x10006265
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.1001b3d0
mov ebx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
test ebx, ebx
je 0x100062ae
push dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
push ecx
mov ecx, ebx
call fcn.1001f8a0
mov ecx, dword [ebp - 0x6c]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ebx
call fcn.1001b130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10027b68
mov esp, ebp
pop ebp
ret