Function at 0x1001a350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x100cc144]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x50], eax
je 0x1001a83a
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp - 0x58]
push edi
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edx
nop
mov eax, dword [ecx + 0x10]
xorps xmm0, xmm0
mov ecx, dword [ecx + 0x14]
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
cmp esi, ecx
jb 0x1001a5e1
ja 0x1001a3b6
cmp edx, eax
jb 0x1001a5e1
mov eax, dword [ebp - 0x60]
cmp esi, dword [eax + 0x1c]
ja 0x1001a5e1
jb 0x1001a3cd
cmp edx, dword [eax + 0x18]
ja 0x1001a5e1
movzx esi, word [eax + 0x20]
add esi, eax
mov dword [ebp - 0x2c], esi
mov dl, byte [esi]
mov byte [ebp - 0x2d], dl
test dl, dl
je 0x1001a5e1
mov ecx, dword [ebp - 0x3c]
mov al, dl
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 0x21], al
mov dword [ebp - 0x28], ecx
mov bl, al
mov bh, al
shr bl, 4
and bh, 0xf
test bl, bl
jne 0x1001a406
xor eax, eax
jmp 0x1001a412
movzx eax, bh
movzx ecx, bl
add ecx, eax
movsx eax, byte [ecx + esi]
cdq
movzx ecx, bl
mov esi, eax
movzx eax, bh
dec ecx
add ecx, eax
mov dword [ebp - 0x54], eax
mov edi, edx
cmp ecx, eax
jle 0x1001a44d
mov ebx, dword [ebp - 0x2c]
nop word [eax + eax]
movzx eax, byte [ecx + ebx]
shld edi, esi, 8
cdq
shl esi, 8
add eax, esi
mov esi, eax
adc edi, edx
dec ecx
cmp ecx, dword [ebp - 0x54]
jg 0x1001a430
mov al, byte [ebp - 0x2d]
jmp 0x1001a450
mov al, byte [ebp - 0x21]
add dword [ebp - 0x28], esi
xorps xmm0, xmm0
movzx edx, al
adc dword [ebp - 0x20], edi
mov eax, edx
movlpd qword [ebp - 0x5c], xmm0
and eax, 0xf
mov ebx, dword [ebp - 0x58]
mov ecx, eax
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x3c], eax
jbe 0x1001a498
mov esi, dword [ebp - 0x2c]
nop dword [eax]
movzx eax, byte [ecx + esi]
shld ebx, edi, 8
cdq
shl edi, 8
add edi, eax
adc ebx, edx
sub ecx, 1
jne 0x1001a480
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
add eax, edi
mov esi, dword [ebp - 0x4c]
adc ecx, ebx
cmp dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x2c]
ja 0x1001a4ce
jb 0x1001a4ba
mov esi, dword [ebp - 0x48]
cmp dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x2c]
ja 0x1001a4ce
cmp dword [ebp - 0x4c], ecx
jb 0x1001a58e
ja 0x1001a4ce
cmp dword [ebp - 0x48], eax
jb 0x1001a58e
shr edx, 4
inc esi
add edx, dword [ebp - 0x3c]
add esi, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], esi
mov dl, byte [esi]
mov byte [ebp - 0x2d], dl
mov al, dl
mov byte [ebp - 0x21], al
test dl, dl
jne 0x1001a3f4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x44]
mov esi, dword [edx + 0x30]
test esi, esi
je 0x1001a531
cmp eax, dword [edx + 0x24]
jb 0x1001a531
ja 0x1001a50e
cmp ecx, dword [edx + 0x20]
jb 0x1001a531
mov eax, dword [edx + 0x28]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0x2c]
adc eax, dword [edx + 0x24]
cmp dword [ebp - 0x20], eax
jb 0x1001a6d9
ja 0x1001a531
cmp ecx, dword [ebp - 0x3c]
jb 0x1001a6d9
cmp byte [ebp + 0x1c], 0
je 0x1001a6d9
mov eax, dword [ebp - 0x20]
cmp eax, dword [edx + 0x24]
jb 0x1001a6d9
ja 0x1001a552
cmp ecx, dword [edx + 0x20]
jb 0x1001a6d9
test esi, esi
je 0x1001a569
push esi
call fcn.1003a046
mov edx, dword [ebp - 0x44]
add esp, 4
mov dword [edx + 0x30], 0
mov esi, dword [edx + 0x38]
mov eax, esi
mov ecx, dword [edx + 0x3c]
or eax, ecx
jne 0x1001a612
test ebx, ebx
ja 0x1001a5f2
jb 0x1001a587
cmp edi, 0xfa0
ja 0x1001a5f2
mov esi, edi
mov dword [ebp - 0x2c], ebx
jmp 0x1001a5fe
push esi
call fcn.1001b1b0
add esp, 4
or eax, edx
jne 0x1001a5bf
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x38]
sub edi, eax
sbb ebx, 0
jmp 0x1001a4f2
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x4c]
sbb eax, dword [ebp - 0x34]
add dword [ebp - 0x28], ecx
adc dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x38]
sub edi, eax
sbb ebx, 0
jmp 0x1001a4f2
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
jmp 0x1001a4f8
mov esi, 0xfa0
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], edi
mov dword [edx + 0x44], ebx
jmp 0x1001a689
add esi, dword [edx + 0x40]
mov eax, dword [ebp - 0x28]
adc ecx, dword [edx + 0x44]
cmp dword [ebp - 0x20], ecx
jb 0x1001a667
ja 0x1001a626
cmp eax, esi
jbe 0x1001a667
test ebx, ebx
ja 0x1001a64a
jb 0x1001a634
cmp edi, 0xfa0
ja 0x1001a64a
mov dword [edx + 0x38], eax
mov esi, edi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], edi
mov dword [edx + 0x44], ebx
jmp 0x1001a689
mov dword [edx + 0x38], eax
mov esi, 0xfa0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], 0
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], edi
mov dword [edx + 0x44], ebx
jmp 0x1001a689
sub esi, eax
sbb ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
ja 0x1001a67d
jb 0x1001a689
cmp esi, 0xfa0
jbe 0x1001a689
mov esi, 0xfa0
mov dword [ebp - 0x2c], 0
mov eax, dword [edx + 0x48]
push 0x101206e9
movzx ecx, byte [eax + 0xd]
movzx eax, word [eax + 0xb]
imul ecx, eax
imul ecx, esi
push ecx
call fcn.1003a3c7
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1001a6d9
mov edx, dword [ebp - 0x44]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
push esi
push dword [ebp - 0x20]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x20], ecx
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x2c]
push ecx
mov ecx, edx
mov dword [edx + 0x28], esi
mov dword [edx + 0x2c], eax
call fcn.1001a850
mov eax, dword [ebp + 0x14]
sub esp, 8
mov edx, ebx
mov ecx, edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100a64b0]
movsd qword [esp], xmm0
call fcn.1003a360
sub esp, 8
movsd qword [esp], xmm0
call fcn.1007c833
add esp, 0x10
fstp qword [ebp - 0x5c]
movsd xmm0, qword [ebp - 0x5c]
call fcn.1003a231
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov ecx, dword [edx + 0x48]
mov dl, byte [ecx + 0xd]
movzx ecx, word [ecx + 0xb]
movzx esi, dl
mov dword [ebp - 0x38], esi
movzx esi, cx
imul esi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 0x21], dl
mov edx, dword [ebp - 0x44]
imul esi, eax
mov eax, ecx
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
jne 0x1001a767
push esi
push 0
push dword [ebp - 0x50]
call fcn.10071620
add esp, 0xc
jmp 0x1001a817
cmp dword [edx + 0x30], 0
je 0x1001a7c0
mov esi, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
cmp dword [ebp - 0x20], esi
jb 0x1001a7c0
ja 0x1001a77e
cmp ecx, eax
jb 0x1001a7c0
mov esi, dword [edx + 0x28]
add esi, eax
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x3c], esi
adc eax, dword [edx + 0x24]
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x20], eax
ja 0x1001a7c0
jb 0x1001a79b
cmp ecx, dword [ebp - 0x3c]
jae 0x1001a7c0
sub ecx, dword [edx + 0x20]
push esi
mov esi, dword [ebp - 0x2c]
movzx eax, si
imul ecx, eax
imul ecx, dword [ebp - 0x38]
add ecx, dword [edx + 0x30]
push ecx
push dword [ebp - 0x50]
call fcn.10070b20
mov esi, dword [ebp - 0x34]
add esp, 0xc
jmp 0x1001a817
mov eax, dword [ebp - 0x2c]
xorps xmm0, xmm0
movzx eax, ax
cdq
mov esi, eax
movlpd qword [ebp - 0x1c], xmm0
movzx eax, byte [ebp - 0x21]
mov ecx, edx
cdq
push edx
push eax
push ecx
push esi
mov dword [ebp - 0xc], 0
call fcn.1003a3d0
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
push ecx
push edx
push eax
call fcn.1003a3d0
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x44]
push eax
push esi
push dword [ebp - 0x50]
push dword [edx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
add edx, eax
mov ecx, dword [ebp - 0x60]
adc dword [ebp - 0x4c], 0
add dword [ebp - 0x50], esi
sub dword [ebp + 0x14], eax
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x48], edx
jne 0x1001a390
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10039fbc
mov esp, ebp
pop ebp
ret 0x18