Function at 0x10009f10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100cc610
push 0x100be171
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x100df00c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x34], edi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
or ebx, 0xffffffff
mov dword [ebp - 0x2c], eax
push 0x100c4354
push ecx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x1000a1ea
push 2
push edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000a1dc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x1000a1dc
push edi
push edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000a1dc
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x1000a1dc
push esi
push dword [ebp - 0x20]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x20]
jne 0x1000a1dc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
push 6
push str.GIF87a
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x1000a02c
push 6
push str.GIF89a
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x1000a02c
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000a1dc
mov ebx, 1
mov dword [ebp - 0x34], ebx
lea eax, [edi + 6]
mov dword [ebp - 0x1c], eax
mov cl, byte [eax + 4]
test cl, cl
jns 0x1000a051
movzx ecx, cl
and ecx, 7
inc ecx
mov edx, 3
shl edx, cl
jmp 0x1000a053
xor edx, edx
add eax, 7
mov dword [ebp - 0x1c], eax
lea esi, [eax + edx]
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x20]
mov eax, esi
sub eax, edi
cmp eax, ecx
jge 0x1000a08d
mov al, byte [esi]
cmp al, 0x21
je 0x1000a0ee
cmp al, 0x2c
je 0x1000a09c
cmp al, 0x3b
je 0x1000a08d
or ebx, 0xffffffff
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x24]
jmp 0x1000a1dc
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x28]
jmp 0x1000a1c6
mov al, byte [esi + 9]
test al, al
jns 0x1000a0cd
movzx ecx, al
and ecx, 7
inc ecx
mov eax, 3
shl eax, cl
add esi, 0xa
mov dword [ebp - 0x1c], esi
add eax, esi
mov dword [ebp - 0x1c], eax
inc eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
call fcn.10009e20
mov esi, dword [ebp - 0x1c]
jmp 0x1000a05f
xor eax, eax
add esi, 0xa
mov dword [ebp - 0x1c], esi
mov eax, esi
mov dword [ebp - 0x1c], eax
inc eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
call fcn.10009e20
mov esi, dword [ebp - 0x1c]
jmp 0x1000a05f
movzx eax, byte [esi + 1]
dec eax
cmp eax, 0xfe
ja case.0x1000a105.2
movzx eax, byte [eax + 0x1000a220]
jmp dword [eax*4 + 0x1000a20c]
add esi, 0xf
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x1c]
call fcn.10009e20
mov esi, dword [ebp - 0x1c]
jmp 0x1000a05f
movzx eax, byte [esi + 3]
and eax, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
add esi, 8
mov dword [ebp - 0x1c], esi
jmp 0x1000a062
add esi, 2
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x1c]
call fcn.10009e20
mov esi, dword [ebp - 0x1c]
jmp 0x1000a05f
push 0xb
push str.NETSCAPE2.0
lea eax, [esi + 3]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1000a17c
mov ebx, 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x24]
jmp 0x1000a1dc
add esi, 0xe
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x1c]
call fcn.10009e20
mov esi, dword [ebp - 0x1c]
jmp 0x1000a05f
mov esi, dword [ebp - 0x24]
test ebx, ebx
je 0x1000a1d9
xor ebx, ebx
test eax, eax
setne bl
add ebx, 0x16
jmp 0x1000a1dc
or ebx, 0xffffffff
test esi, esi
je 0x1000a1ea
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x1000a1f8
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret