Function at 0x1000a290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [0x1001500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x28]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], 0
mov dword [ebp - 0x58], ecx
mov edx, 0x19
push str.i686plugin_container.exe
call fcn.10010a20
mov ecx, edi
add esp, 4
test edi, edi
je 0x1000a4a2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x14]
cmp edx, 7
jbe 0x1000a2f2
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x44]
add eax, eax
neg eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x54], 0
xor edi, edi
mov dword [ebp - 0x74], edx
lea eax, [edi + edi*2]
cmp dword [esi + eax*4 + 4], 0xffffffff
je 0x1000a470
mov dword [ebp - 0x78], edi
mov edi, dword [esi + eax*4]
mov eax, 7
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ebx, eax
cmp eax, 7
ja 0x1000a35f
mov dword [ebp - 0x30], ebx
mov eax, ebx
add eax, ebx
push eax
push edi
lea esi, [ebp - 0x40]
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [ebp + ebx*2 - 0x40], 0
jmp 0x1000a36f
lea esi, [ebp - 0x40]
mov ecx, esi
mov edx, ebx
push edi
call fcn.10010a20
add esp, 4
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
mov edi, esi
mov dword [ebp - 0x48], eax
cmova edi, eax
mov dword [ebp - 0x4c], edi
mov eax, edx
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
jb 0x1000a43a
cmp dword [ebp - 0x44], 0
je 0x1000a47b
cmp ecx, 7
cmova esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x50]
lea edi, [esi + eax*2]
sub edi, dword [ebp - 0x4c]
add edi, 2
je 0x1000a43a
mov eax, dword [ebp - 0x58]
movzx eax, word [eax]
add esi, dword [ebp - 0x6c]
lea edx, [esi + edx*2]
mov dword [ebp - 0x70], edx
mov ebx, dword [ebp - 0x4c]
sar edi, 1
xor edx, edx
cmp word [ebx + edx], ax
je 0x1000a3db
add edx, 2
dec edi
jne 0x1000a3cd
jmp 0x1000a43a
lea esi, [ebx + edx]
mov dword [ebp - 0x68], esi
xor edi, edi
inc edi
cmp dword [ebp - 0x44], edi
je 0x1000a420
mov esi, dword [ebp - 0x68]
movzx esi, word [esi + edi*2]
mov word [ebp - 0x5a], si
lea esi, [edi + 1]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x58]
movzx esi, word [ebp - 0x5a]
cmp si, word [ecx + edi*2]
mov ecx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
je 0x1000a3e4
mov edi, dword [ebp - 0x70]
sub edi, ebx
add ebx, edx
add ebx, 2
sub edi, edx
jne 0x1000a3c9
jmp 0x1000a43a
sub ebx, dword [ebp - 0x4c]
add ebx, edx
cmp ebx, 0xfffffffe
je 0x1000a43a
sar ebx, 1
cmp ebx, dword [ebp - 0x50]
jne 0x1000a43a
mov al, 1
mov dword [ebp - 0x54], eax
xor ebx, ebx
jmp 0x1000a43c
mov bl, 1
cmp ecx, 8
mov eax, ecx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
jb 0x1000a466
lea ecx, [eax + eax]
add ecx, 2
cmp ecx, 0x1000
jae 0x1000a47f
push ecx
push dword [ebp - 0x48]
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
mov ecx, dword [ebp + 0xc]
test bl, bl
mov edx, dword [ebp - 0x74]
mov edi, dword [ebp - 0x78]
je 0x1000a4ac
inc edi
cmp edi, ecx
jne 0x1000a308
jmp 0x1000a4ac
xor ebx, ebx
jmp 0x1000a42c
mov ecx, eax
mov edx, dword [ebp - 0x48]
mov eax, dword [edx - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x1000a5e2
add ecx, ecx
add ecx, 0x25
mov dword [ebp - 0x48], eax
mov esi, dword [ebp + 8]
jmp 0x1000a457
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x54], 0
cmp edx, 8
jb 0x1000a4d3
mov eax, dword [ebp - 0x28]
lea ecx, [edx + edx]
add ecx, 2
cmp ecx, 0x1000
jae 0x1000a5c7
push ecx
push eax
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x54]
and al, 1
movzx eax, al
or eax, 4
cmp eax, ecx
sete bl
test ecx, ecx
je 0x1000a5aa
add esi, 4
mov edi, dword [esi]
cmp edi, 0xffffffff
jne 0x1000a513
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1000a508
push eax
mov edi, ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, edi
add esi, 0xc
dec ecx
jne 0x1000a4ee
jmp 0x1000a5aa
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x28]
mov edx, 0x4000
call fcn.10010af0
mov dword [ebp - 0x40], ebx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x48], ecx
push ebx
mov ebx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push 0x4000
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, dword [ebp - 0x48]
mov edi, eax
mov eax, dword [ebp - 0x40]
test edx, edx
jne 0x1000a575
test eax, eax
movzx ebx, bl
cmove ebx, eax
test edi, edi
cmove ebx, edi
push dword [esi]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4c]
jmp 0x1000a4f5
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x20]
sub eax, edx
cmp eax, 0x1000
jae 0x1000a593
push eax
push edx
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
mov eax, dword [ebp - 0x50]
jmp 0x1000a55b
mov ecx, dword [edx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x1000a5e2
add eax, 0x23
mov edx, ecx
mov ebx, dword [ebp - 0x44]
jmp 0x1000a584
and bl, 1
mov byte [0x100159cc], bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000f700
mov eax, ebx
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, eax
add ecx, 0xfffffffc
mov eax, dword [eax - 4]
sub ecx, eax
cmp ecx, 0x20
jae 0x1000a5e2
mov ecx, edx
add ecx, edx
add ecx, 0x25
jmp 0x1000a4c6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3