Function at 0x100f2bbf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
test bl, 1
je 0x100f2bf3
cmp dword [esi + 0xc], eax
jne 0x100f2bf3
push dword [esi]
push str.Impossible_to_open_the__s_protocol_for_reading_n
push 0x10
push eax
call fcn.1010c4f6
add esp, 0x10
push 0xfffffffffffffffb
pop eax
jmp 0x100f2dc1
test bl, 2
je 0x100f2c06
cmp dword [esi + 0x10], eax
jne 0x100f2c06
push dword [esi]
push str.Impossible_to_open_the__s_protocol_for_writing_n
jmp 0x100f2be0
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100f2c0f
sub ecx, edx
lea eax, [ecx + 0x31]
push eax
call fcn.1010cffe
pop ecx
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x100f2c32
push 0xfffffffffffffff4
jmp 0x100f2df6
mov dword [ecx], str.URLContext
mov ecx, dword [ebp - 4]
lea eax, [ecx + 0x30]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov al, byte [edi]
inc edi
mov byte [ecx], al
inc ecx
test al, al
jne 0x100f2c47
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp - 4]
and dword [eax + 0x18], 0
mov eax, dword [ebp - 4]
and dword [eax + 0x14], 0
cmp dword [esi + 0x34], 0
je 0x100f2d9e
push dword [esi + 0x34]
call fcn.1010cffe
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x100f2c2b
cmp dword [esi + 0x38], 0
je 0x100f2da1
mov edi, dword [esi]
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100f2c9c
push 0x2c
push dword [ecx + 0xc]
sub edi, edx
call fcn.1011a1f0
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
mov edx, dword [ecx + 8]
mov ecx, dword [esi + 0x38]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
push dword [ecx + 8]
call fcn.1010d978
mov eax, dword [ebp - 4]
push edi
push dword [eax + 0xc]
push dword [esi]
call fcn.10116f50
add esp, 0x18
test eax, eax
jne 0x100f2d9e
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
add eax, edi
cmp eax, ebx
jne 0x100f2da1
mov esi, dword [ebp - 8]
xor ebx, ebx
mov al, byte [esi + 1]
add esi, 2
mov byte [ebp + 0x17], al
movsx eax, al
mov dword [ebp - 0xc], eax
push eax
push esi
call fcn.1011a1f0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100f2d78
cmp esi, edi
jae 0x100f2d78
push dword [ebp - 0xc]
lea eax, [edi + 1]
push eax
call fcn.1011a1f0
mov dword [ebp - 0x10], eax
pop ecx
pop ecx
test eax, eax
je 0x100f2d78
xor ecx, ecx
mov byte [edi], cl
mov byte [eax], cl
lea eax, [edi + 1]
push ecx
mov ecx, dword [ebp - 4]
push eax
push esi
push dword [ecx + 8]
call fcn.1010d745
mov ebx, eax
add esp, 0x10
cmp ebx, 0xabafb008
jne 0x100f2d66
push esi
push str.Key__s_not_found._n
push 0x10
push dword [ebp - 4]
call fcn.1010c4f6
add esp, 0x10
mov esi, dword [ebp - 0x10]
mov al, byte [ebp + 0x17]
mov byte [edi], al
mov byte [esi], al
inc esi
mov eax, dword [ebp - 0xc]
test ebx, ebx
jns 0x100f2d07
test ebx, ebx
js 0x100f2dc7
cmp esi, edi
jne 0x100f2dc7
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100f2d85
sub ecx, edx
lea eax, [edi + 1]
push ecx
push eax
push dword [ebp - 8]
call fcn.10114610
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x100f2db9
mov eax, dword [edx]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 4]
mov dword [eax + 0x24], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
push str.Error_parsing_options_string__s_n
push 0x10
push dword [ebp - 4]
call fcn.1010c4f6
mov eax, dword [ebp - 4]
add eax, 8
push eax
call fcn.1010cfb6
lea eax, [ebp - 4]
push eax
call fcn.1010cfb6
mov ecx, dword [ebp - 4]
add esp, 0x18
push 0xffffffffffffffea
mov eax, dword [ebp + 8]
pop esi
and dword [eax], 0
test ecx, ecx
je 0x100f2e0b
add ecx, 8
push ecx
call fcn.1010cfb6
pop ecx
lea eax, [ebp - 4]
push eax
call fcn.1010cfb6
pop ecx
mov eax, esi
jmp 0x100f2dc0