Function at 0x100610e0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ee5d7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x298
mov eax, dword [0x10275008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x284], eax
cmp dword [esi + 0x10], 0
je 0x1006168e
mov ecx, esi
call fcn.100e0060
test al, al
je 0x1006168e
cmp dword [esi + 0x14], 8
jb 0x1006114e
mov esi, dword [esi]
push 0x10234070
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov edi, eax
add esp, 8
mov dword [ebp - 0x288], edi
test edi, edi
je 0x1006168e
push 0
push 0
push edi
mov byte [ebp - 0x27d], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10061675
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea eax, [ebp - 0x278]
push edi
push 0x4c
push 1
push eax
call esi
add esp, 0x10
cmp eax, 0x4c
jne 0x10061675
cmp dword [ebp - 0x278], eax
jne 0x10061675
mov ecx, dword [ebp - 0x264]
mov eax, ecx
shr eax, 7
and al, 1
mov byte [ebp - 0x28c], al
test cl, 1
je 0x100613b8
push edi
push 1
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0
push 2
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x10061675
mov eax, dword [ebp - 0x27c]
test ax, ax
je 0x10061675
movzx eax, ax
push eax
call fcn.101c8844
movzx ecx, word [ebp - 0x27c]
add esp, 4
mov esi, eax
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
movzx ecx, word [ebp - 0x27c]
add esp, 0xc
push edi
push ecx
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx ecx, word [ebp - 0x27c]
add esp, 0x10
cmp eax, ecx
je 0x1006126b
push esi
mov byte [ebp - 0x27d], 0
call fcn.101c880e
add esp, 4
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov al, byte [ebp - 0x27d]
add esp, 4
jmp 0x10061690
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100612b9
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100612a0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
jmp 0x10061305
movzx eax, word [esi]
add eax, 8
add eax, esi
push 0x1000
push eax
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
jne 0x10061310
mov edx, dword [ebp - 0x224]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x224], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100612f0
sub ecx, dword [ebp - 0x224]
sar ecx, 1
push ecx
push edx
mov ecx, dword [ebp - 0x284]
call fcn.10005390
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x27c]
movzx edx, ax
cmp edx, 3
jb 0x100613af
mov edi, eax
nop
mov ax, word [ecx + esi]
mov word [ebp - 0x28e], ax
mov al, byte [ecx + esi + 2]
add ecx, 3
cmp al, 0x61
jne 0x10061388
cmp ecx, edx
ja 0x100613a9
cmp byte [ecx + esi], 0x80
jne 0x10061388
add ecx, 5
cmp ecx, edx
ja 0x100613a9
lea edx, [ecx + esi]
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10061360
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x284]
push edx
lea ecx, [ecx + 0x90]
call fcn.10005390
mov edi, dword [ebp - 0x27c]
movzx eax, word [ebp - 0x28e]
mov ecx, dword [ebp - 0x224]
add ecx, eax
movzx edx, di
mov eax, ecx
mov dword [ebp - 0x224], ecx
add eax, 3
cmp eax, edx
jbe 0x10061330
mov edi, dword [ebp - 0x288]
push esi
call fcn.101c880e
add esp, 4
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ecx, dword [ebp - 0x264]
add esp, 4
mov esi, eax
test cl, 2
je 0x10061412
push edi
push 1
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10061675
mov eax, dword [ebp - 0x224]
push 0
add eax, esi
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov ecx, dword [ebp - 0x264]
add esp, 0xc
test cl, 4
je 0x1006148b
push dword [ebp - 0x28c]
mov edx, edi
lea ecx, [ebp - 0x2a8]
call fcn.100616b0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x284]
add edi, 0x18
cmp edi, esi
je 0x1006146d
mov ecx, edi
call fcn.10005300
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.10005300
mov ecx, dword [ebp - 0x264]
mov edi, dword [ebp - 0x288]
test cl, 8
je 0x100614fe
push dword [ebp - 0x28c]
mov edx, edi
lea ecx, [ebp - 0x2a8]
call fcn.100616b0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x284]
add edi, 0x30
cmp edi, esi
je 0x100614e6
mov ecx, edi
call fcn.10005300
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.10005300
mov ecx, dword [ebp - 0x264]
test cl, 0x10
je 0x10061575
push dword [ebp - 0x28c]
mov edx, dword [ebp - 0x288]
lea ecx, [ebp - 0x2a8]
call fcn.100616b0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 2
mov edi, dword [ebp - 0x284]
add edi, 0x48
cmp edi, esi
je 0x1006155d
mov ecx, edi
call fcn.10005300
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.10005300
mov ecx, dword [ebp - 0x264]
test cl, 0x20
je 0x100615ec
push dword [ebp - 0x28c]
mov edx, dword [ebp - 0x288]
lea ecx, [ebp - 0x2a8]
call fcn.100616b0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 3
mov edi, dword [ebp - 0x284]
add edi, 0x60
cmp edi, esi
je 0x100615d4
mov ecx, edi
call fcn.10005300
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.10005300
mov ecx, dword [ebp - 0x264]
test cl, 0x40
je 0x1006165d
push dword [ebp - 0x28c]
mov edx, dword [ebp - 0x288]
lea ecx, [ebp - 0x2a8]
call fcn.100616b0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 4
mov edi, dword [ebp - 0x284]
add edi, 0x78
cmp edi, esi
je 0x1006164b
mov ecx, edi
call fcn.10005300
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.10005300
mov edi, dword [ebp - 0x288]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov al, byte [ebp - 0x27d]
add esp, 4
jmp 0x10061690
push edi
mov byte [ebp - 0x27d], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov al, byte [ebp - 0x27d]
add esp, 4
jmp 0x10061690
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101c837b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8