Function at 0x10006170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov ecx, dword [ebp + 8]
mov esi, 0x104
mov dword [ebp - 0xc], edi
movlpd qword [ebp - 0x30], xmm0
mov dl, byte [edi + 0x5c]
movzx eax, word [ecx + 0x1a]
cmp dl, 0x20
jne 0x100061a8
movzx ebx, word [ecx + 0x14]
shl ebx, 0x10
or ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x100061ab
mov dword [ebp - 0x10], eax
cmp dl, 0x20
je 0x100061bd
lea eax, [edi + 0x5d]
cmp ecx, eax
jne 0x100061bd
movzx ecx, word [edi + 0x48]
jmp 0x100061c1
movzx ecx, word [edi + 0xa]
movzx eax, word [edi + 8]
imul ecx, eax
push 0x20a
mov dword [ebp - 8], ecx
call fcn.1000a914
add esp, 4
mov ebx, eax
mov dword [ebp - 0x20], ebx
push dword [ebp - 8]
call fcn.1000a914
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x20a
push 0
push ebx
call fcn.1000d7b0
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x100065d2
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
push dword [ebp - 8]
push 0
push dword [ebp - 0x1c]
call fcn.1000d7b0
add esp, 0xc
cmp byte [edi + 0x5c], 0x20
je 0x10006288
lea eax, [edi + 0x5d]
cmp dword [ebp + 8], eax
jne 0x10006288
movzx ebx, word [edi + 0x48]
xorps xmm0, xmm0
movzx edi, word [edi + 8]
mov ecx, dword [ebp - 0xc]
mov eax, edi
cdq
push edx
push eax
mov ecx, dword [ecx + 0x50]
sub ecx, ebx
mov dword [ebp - 0x44], 0
push 0
push ecx
movups xmmword [ebp - 0x40], xmm0
call fcn.1001af80
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
imul edi, ebx
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x38], edx
push edi
mov edi, dword [ebp - 0xc]
push dword [ebp - 0x1c]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100065de
mov ebx, dword [ebp - 0x20]
jmp 0x10006302
cmp dword [ebp + 0xc], 2
jne 0x100062e9
mov edx, dword [edi + 0x3c]
xor ecx, ecx
test edx, edx
je 0x100062b6
mov eax, dword [edi + 0x44]
nop word [eax + eax]
mov ebx, dword [ebp - 0x10]
cmp dword [eax], ebx
mov ebx, dword [ebp - 0x20]
je 0x100065de
inc ecx
add eax, 4
cmp ecx, edx
jb 0x100062a0
mov eax, dword [edi + 0x40]
cmp edx, eax
jb 0x100062da
lea eax, [eax*4 + 0x1000]
push eax
push dword [edi + 0x44]
call fcn.1000e217
add esp, 8
mov dword [edi + 0x44], eax
add dword [edi + 0x40], 0x400
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x44]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4], edx
inc dword [edi + 0x3c]
push dword [ebp - 0x1c]
mov eax, dword [edi]
mov ecx, edi
push 1
push 0
push dword [ebp - 0x10]
call dword [eax + 0x10]
test eax, eax
je 0x100065de
cmp dword [ebp - 8], 0
jbe 0x1000659e
mov ecx, dword [ebp - 0x1c]
mov eax, 0xfffffff7
sub eax, ecx
mov dword [ebp - 0x24], eax
lea edi, [ecx + 9]
mov ecx, dword [ebp - 8]
nop
lea eax, [edi - 9]
mov al, byte [eax]
test al, al
je 0x1000659b
cmp dword [ebp + 0xc], 2
je 0x1000633b
cmp al, 0xe5
je 0x1000658b
mov dl, byte [edi + 2]
mov cl, dl
cmp cl, 8
je 0x10006588
cmp cl, 0xf
je 0x10006542
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0xe5
jne 0x10006373
cmp esi, 0x104
jne 0x1000636a
cmp al, 0x20
jb 0x100065de
cmp dl, 0x2f
ja 0x100065de
cmp esi, 0x104
jne 0x1000646e
mov al, byte [edi + 1]
mov esi, 0x103
cmp al, 0x20
je 0x1000639d
test al, al
je 0x1000639d
cbw
mov esi, 0x102
mov word [ebx + 0x206], ax
mov al, byte [edi]
cmp al, 0x20
je 0x100063ae
test al, al
je 0x100063ae
cbw
mov word [ebx + esi*2], ax
dec esi
mov al, byte [edi - 1]
cmp al, 0x20
je 0x100063c0
test al, al
je 0x100063c0
cbw
mov word [ebx + esi*2], ax
dec esi
cmp word [ebx + esi*2 + 2], 0
je 0x100063d2
mov eax, 0x2e
mov word [ebx + esi*2], ax
dec esi
mov al, byte [edi - 2]
cmp al, 0x20
je 0x100063e4
test al, al
je 0x100063e4
cbw
mov word [ebx + esi*2], ax
dec esi
mov al, byte [edi - 3]
cmp al, 0x20
je 0x100063f6
test al, al
je 0x100063f6
cbw
mov word [ebx + esi*2], ax
dec esi
mov al, byte [edi - 4]
cmp al, 0x20
je 0x10006408
test al, al
je 0x10006408
cbw
mov word [ebx + esi*2], ax
dec esi
mov al, byte [edi - 5]
cmp al, 0x20
je 0x1000641a
test al, al
je 0x1000641a
cbw
mov word [ebx + esi*2], ax
dec esi
mov al, byte [edi - 6]
cmp al, 0x20
je 0x1000642c
test al, al
je 0x1000642c
cbw
mov word [ebx + esi*2], ax
dec esi
mov al, byte [edi - 7]
cmp al, 0x20
je 0x1000643e
test al, al
je 0x1000643e
cbw
mov word [ebx + esi*2], ax
dec esi
mov al, byte [edi - 8]
cmp al, 0x20
je 0x10006450
test al, al
je 0x10006450
cbw
mov word [ebx + esi*2], ax
dec esi
mov al, byte [edi - 9]
lea edx, [edi - 9]
cmp al, 0xe5
jne 0x10006465
mov eax, 0x7e
mov word [ebx + esi*2], ax
jmp 0x10006471
movzx eax, al
mov word [ebx + esi*2], ax
jmp 0x10006471
lea edx, [edi - 9]
movzx eax, word [ebx + esi*2]
lea ecx, [ebx + esi*2]
cmp eax, 0x2e
jne 0x1000649e
cmp word [ecx + 2], 0
je 0x1000652b
cmp eax, eax
jne 0x1000649e
cmp word [ecx + 2], ax
jne 0x1000649e
cmp word [ebx + esi*2 + 4], 0
je 0x1000652b
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x100064eb
sub eax, 2
jne 0x10006506
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc], 0
je 0x100064ba
mov byte [edi + 3], 1
jmp 0x100064c6
cmp byte [edx], 0xe5
sete al
mov byte [edi + 3], al
mov eax, dword [ebp + 8]
cmp byte [edi + 3], 0
jne 0x100064d2
test byte [edi + 2], 0x10
je 0x10006506
mov esi, dword [ebp - 0xc]
push 1
push eax
push ecx
push edx
mov ecx, esi
call fcn.10006820
test eax, eax
je 0x100065de
jmp 0x10006509
mov esi, dword [ebp - 0xc]
push 0
push dword [ebp + 8]
push ecx
push edx
mov ecx, esi
call fcn.10006820
test eax, eax
je 0x100065de
jmp 0x10006509
mov esi, dword [ebp - 0xc]
add dword [ebp - 0x14], 1
adc dword [ebp - 0x18], 0
test byte [edi + 2], 0x10
je 0x1000652b
push dword [ebp + 0xc]
lea eax, [edi - 9]
mov ecx, esi
push eax
call fcn.10006170
add dword [ebp - 0x14], eax
adc dword [ebp - 0x18], edx
push 0x20a
push 0
push ebx
call fcn.1000d7b0
add esp, 0xc
mov esi, 0x104
jmp 0x10006588
cmp esi, 0x104
jne 0x10006552
mov al, byte [edi + 4]
mov byte [ebp - 1], al
jmp 0x1000655a
mov al, byte [ebp - 1]
cmp byte [edi + 4], al
jne 0x1000652b
mov eax, dword [edi + 0x13]
mov dword [ebx + esi*2 - 4], eax
movq xmm0, qword [edi + 5]
movq qword [ebx + esi*2 - 0x10], xmm0
mov eax, dword [edi + 0xd]
mov dword [ebx + esi*2 - 8], eax
add esi, 0xfffffff3
movq xmm0, qword [edi - 8]
movq qword [ebx + esi*2], xmm0
mov ax, word [edi]
mov word [ebx + esi*2 + 8], ax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
add edi, 0x20
add eax, edi
cmp eax, ecx
jb 0x10006320
mov edi, dword [ebp - 0xc]
cmp byte [edi + 0x5c], 0x20
mov ecx, dword [ebp + 8]
je 0x100065ae
lea eax, [edi + 0x5d]
cmp ecx, eax
je 0x100065de
cmp dword [ebp + 0xc], 2
jne 0x100065b9
cmp byte [ecx], 0xe5
je 0x100065de
push 0
push dword [ebp - 0x10]
mov ecx, edi
call fcn.10006610
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10006211
jmp 0x100065de
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
push 2
push dword [ebp - 0x20]
call fcn.1000a57f
push 1
push dword [ebp - 0x1c]
call fcn.1000a57f
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov edx, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8