Function at 0x100337bb
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1014023e
call fcn.1013e250
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], 0x76075402
mov dword [ebp - 0x34], 0x37063103
mov dword [ebp - 0x30], 0xe38c7c1
mov dword [ebp - 0x2c], 0x5d0a7b01
mov dword [ebp - 0x28], 0x530b7d00
mov dword [ebp - 0x24], 0x6609470d
mov dword [ebp - 0x20], 0x78063304
mov dword [ebp - 0x1c], 0x7c05440c
mov word [ebp - 0x18], 0x5808
cmp ecx, 6
jne 0x10033841
push ecx
pop edi
push 0xa
pop ecx
jmp 0x1003386e
movzx eax, byte [ebp + ecx - 0x37]
lea edx, [edi - 1]
sub eax, ecx
add edx, eax
jns 0x10033861
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 0x10033835
xor eax, eax
lea ecx, [ebp - 0x64]
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x88]
push eax
call fcn.10013e17
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 0x100338b7
mov eax, dword [esi]
jmp 0x100338b9
mov eax, esi
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10122905
mov ecx, eax
add esp, 0xc
cmp ecx, 0xd
jne 0x100338f4
cmp dword [ebp - 0x50], edi
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
cmp dword [esi + 0x14], edi
jb 0x100338df
mov esi, dword [esi]
push eax
push esi
call fcn.101228f0
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x14], eax
test eax, eax
sete cl
jmp 0x100338f7
mov eax, dword [ebp - 0x14]
xor edi, edi
test ecx, ecx
jne 0x100339df
test eax, eax
je 0x100339df
push 2
push edi
push eax
call fcn.10123d1e
push dword [ebp - 0x14]
call fcn.10123c23
push edi
push edi
push dword [ebp - 0x14]
mov esi, eax
call fcn.10123d1e
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.1001a31b
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
push esi
mov esi, dword [ebp - 0x44]
push 2
push esi
call fcn.1012358d
push dword [ebp - 0x14]
call fcn.10123e0d
push 0xd1e3
call fcn.1001965b
movsx ecx, al
add esp, 0x18
movzx eax, word [esi]
cmp eax, ecx
je 0x10033991
push 0x1405d
call fcn.1001965b
pop ecx
movsx ecx, al
movzx eax, word [esi]
cmp eax, ecx
je 0x10033991
xor eax, eax
inc eax
jmp 0x10033993
mov eax, edi
lea eax, [esi + eax*2]
push eax
lea ecx, [ebp - 0xa0]
call fcn.10013e17
push ecx
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.10072f29
pop ecx
push eax
mov ecx, ebx
call fcn.100360e4
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.100170c9
push edi
push 1
lea ecx, [ebp - 0xa0]
call fcn.10014448
lea ecx, [ebp - 0x44]
call fcn.1001a357
push edi
push 1
lea ecx, [ebp - 0x64]
call fcn.10014448
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