Function at 0x10031dcc
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x101454f8
call fcn.1014399c
sub esp, 0x98
push ebx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x4c], eax
push esi
push edi
mov dword [ebx + 0x14], 0xf
mov esi, edx
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x68], ebx
mov byte [ebx], al
mov dword [ebp - 4], eax
mov ecx, eax
mov dword [ebp - 0x4c], 1
mov edi, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 0x76072d03
mov dword [ebp - 0x34], 0x4d0b6805
mov dword [ebp - 0x30], 0xc83c7406
mov dword [ebp - 0x2c], 0x7d01d9ab
mov dword [ebp - 0x28], 0x450d7d00
mov dword [ebp - 0x24], 0x64026409
mov dword [ebp - 0x20], 0x7806670a
mov dword [ebp - 0x1c], 0x39045408
mov word [ebp - 0x18], 0x480c
cmp ecx, 8
jne 0x10031e53
push 6
pop edi
push 0xc
pop ecx
jmp 0x10031e80
movzx eax, byte [ebp + ecx - 0x37]
lea edx, [edi - 1]
sub eax, ecx
add edx, eax
jns 0x10031e73
or eax, 0xffffffff
sub eax, edx
add edx, 0x100
and eax, 0xffffff00
add edx, eax
movzx eax, byte [ebp + ecx - 0x38]
mov word [ebp + eax*2 - 0x88], dx
add ecx, 2
cmp ecx, 0x22
jb 0x10031e46
xor eax, eax
lea ecx, [ebp - 0x64]
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x88]
push eax
call fcn.100140d4
push 7
mov dword [ebp - 4], 1
lea edi, [ebp - 0x88]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
push 8
lea ecx, [ebp - 0x64]
stosw word es:[edi], ax
pop edi
cmp dword [ebp - 0x50], edi
cmovae ecx, dword [ebp - 0x64]
cmp dword [esi + 0x14], edi
jb 0x10031ec9
mov eax, dword [esi]
jmp 0x10031ecb
mov eax, esi
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10125905
mov ecx, eax
add esp, 0xc
cmp ecx, 0xd
jne 0x10031f06
cmp dword [ebp - 0x50], edi
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
cmp dword [esi + 0x14], edi
jb 0x10031ef1
mov esi, dword [esi]
push eax
push esi
call fcn.101258f0
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x14], eax
test eax, eax
sete cl
jmp 0x10031f09
mov eax, dword [ebp - 0x14]
xor edi, edi
test ecx, ecx
jne 0x10031ff1
test eax, eax
je 0x10031ff1
push 2
push edi
push eax
call fcn.10126d1e
push dword [ebp - 0x14]
call fcn.10126c23
push edi
push edi
push dword [ebp - 0x14]
mov esi, eax
call fcn.10126d1e
add esp, 0x1c
mov dword [ebp - 0x48], edi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
push eax
lea eax, [esi + 1]
push eax
call fcn.10019473
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
push esi
mov esi, dword [ebp - 0x44]
push 2
push esi
call fcn.1012658d
push dword [ebp - 0x14]
call fcn.10126e0d
push 0x28d98
call fcn.10018776
movsx ecx, al
add esp, 0x18
movzx eax, word [esi]
cmp eax, ecx
je 0x10031fa3
push 0x49460
call fcn.10018776
pop ecx
movsx ecx, al
movzx eax, word [esi]
cmp eax, ecx
je 0x10031fa3
xor eax, eax
inc eax
jmp 0x10031fa5
mov eax, edi
lea eax, [esi + eax*2]
push eax
lea ecx, [ebp - 0xa0]
call fcn.100140d4
push ecx
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.10071973
pop ecx
push eax
mov ecx, ebx
call fcn.100347b9
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.10016cae
push edi
push 1
lea ecx, [ebp - 0xa0]
call fcn.10014706
lea ecx, [ebp - 0x44]
call fcn.100194af
push edi
push 1
lea ecx, [ebp - 0x64]
call fcn.10014706
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret