Function at 0x100097e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x10014014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x40
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
movups xmm0, xmmword [0x10012894]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x100128a4]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x100128b4]
movups xmmword [eax + 0x20], xmm0
mov dword [ebp - 0x40], eax
mov dword [eax + 0x30], 0x65
test edi, edi
je 0x10009a67
mov dword [ebp - 0x30], 0
xor ecx, ecx
lea eax, [ecx + ecx*2]
cmp dword [ebx + eax*4 + 4], 0xffffffff
je 0x10009a5c
mov dword [ebp - 0x38], ecx
mov esi, dword [ebx + eax*4]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ebx, eax
cmp eax, 7
ja 0x100099e0
mov dword [ebp - 0x18], ebx
mov eax, ebx
add eax, ebx
push eax
push esi
lea edi, [ebp - 0x28]
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [ebp + ebx*2 - 0x28], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
cmp ecx, 8
mov esi, edi
mov dword [ebp - 0x3c], eax
cmovae esi, eax
cmp edx, 0x19
jb 0x10009a0d
lea eax, [esi + edx*2]
add eax, 0xffffffd0
cmp eax, esi
je 0x10009a0d
lea ecx, [esi + edx*2]
add ecx, 0xffffffce
mov dword [ebp - 0x34], ecx
add edx, 0xffffffe7
mov ebx, esi
mov edi, eax
sub edi, ebx
sar edi, 1
xor ecx, ecx
cmp word [ebx + ecx], 0x69
je 0x100098ed
add ecx, 2
dec edi
jne 0x100098db
jmp 0x10009a0d
cmp word [ebx + ecx + 2], 0x36
jne 0x100099cd
cmp word [ebx + ecx + 4], 0x38
jne 0x100099cd
cmp word [ebx + ecx + 6], 0x36
jne 0x100099cd
cmp word [ebx + ecx + 8], 0x5c
jne 0x100099cd
cmp word [ebx + ecx + 0xa], 0x70
jne 0x100099cd
cmp word [ebx + ecx + 0xc], 0x6c
jne 0x100099cd
cmp word [ebx + ecx + 0xe], 0x75
jne 0x100099cd
cmp word [ebx + ecx + 0x10], 0x67
jne 0x100099cd
cmp word [ebx + ecx + 0x12], 0x69
jne 0x100099cd
cmp word [ebx + ecx + 0x14], 0x6e
jne 0x100099cd
cmp word [ebx + ecx + 0x16], 0x2d
jne 0x100099cd
cmp word [ebx + ecx + 0x18], 0x63
jne 0x100099cd
cmp word [ebx + ecx + 0x1a], 0x6f
jne 0x100099cd
cmp word [ebx + ecx + 0x1c], 0x6e
jne 0x100099cd
cmp word [ebx + ecx + 0x1e], 0x74
jne 0x100099cd
cmp word [ebx + ecx + 0x20], 0x61
jne 0x100099cd
cmp word [ebx + ecx + 0x22], 0x69
jne 0x100099cd
cmp word [ebx + ecx + 0x24], 0x6e
jne 0x100099cd
cmp word [ebx + ecx + 0x26], 0x65
jne 0x100099cd
cmp word [ebx + ecx + 0x28], 0x72
jne 0x100099cd
cmp word [ebx + ecx + 0x2a], 0x2e
jne 0x100099cd
cmp word [ebx + ecx + 0x2c], 0x65
jne 0x100099cd
cmp word [ebx + ecx + 0x2e], 0x78
jne 0x100099cd
cmp word [ebx + ecx + 0x30], 0x65
je 0x100099f5
lea edi, [ebx + ecx]
add ebx, ecx
add ebx, 2
cmp edi, dword [ebp - 0x34]
jne 0x100098d3
jmp 0x10009a0d
lea edi, [ebp - 0x28]
mov ecx, edi
mov edx, ebx
push esi
call fcn.1000fd40
add esp, 4
jmp 0x10009897
sub ebx, esi
add ebx, ecx
cmp ebx, 0xfffffffe
je 0x10009a0d
sar ebx, 1
cmp ebx, edx
jne 0x10009a0d
xor ebx, ebx
mov al, 1
mov dword [ebp - 0x30], eax
jmp 0x10009a0f
mov bl, 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10009a4f
lea ecx, [edx + edx]
add ecx, 2
cmp ecx, 0x1000
jb 0x10009a42
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, eax
cmp ecx, 0x20
jae 0x10009b72
add edx, edx
add edx, 0x25
mov ecx, edx
jmp 0x10009a45
mov eax, dword [ebp - 0x3c]
push ecx
push eax
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
test bl, bl
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
je 0x10009a6e
inc ecx
cmp ecx, edi
jne 0x1000983e
jmp 0x10009a6e
mov dword [ebp - 0x30], 0
push 0x40
push dword [ebp - 0x40]
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
mov eax, dword [ebp - 0x30]
and al, 1
movzx eax, al
or eax, 4
cmp eax, edi
sete al
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x10009b52
add ebx, 4
mov esi, dword [ebx]
cmp esi, 0xffffffff
je 0x10009b39
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
push 0x4023
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
mov eax, 0x4000
push eax
xor ebx, ebx
push ebx
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x28], ebx
push ebx
lea eax, [ebp - 0x28]
push eax
mov eax, 0x4000
push eax
push edi
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, eax
mov ebx, dword [ebp - 0x28]
test edi, edi
je 0x10009b18
mov eax, 0x4000
xor ecx, ecx
test cl, cl
jne 0x10009b0e
mov ecx, dword [edi - 4]
add edi, 0xfffffffc
sub edi, ecx
cmp edi, 0x20
jae 0x10009b72
add eax, 0x23
mov edi, ecx
push eax
push edi
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
test ebx, ebx
mov eax, dword [ebp - 0x2c]
movzx eax, al
cmove eax, ebx
test esi, esi
cmove eax, esi
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x34]
push dword [ebx]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [ebp - 0x38]
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x10009b48
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
add ebx, 0xc
dec edi
jne 0x10009a99
mov ebx, dword [ebp - 0x2c]
and bl, 1
mov byte [0x100149c4], bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e850
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3