Function at 0x100566b3
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 0x100566e7
cmp dword [esi + 0x14], eax
jne 0x100566e7
push dword [esi]
push str.Impossible_to_open_the__s_protocol_for_reading_n
push 0x10
push eax
call fcn.1006b450
add esp, 0x10
push 0xfffffffffffffffb
pop eax
jmp 0x10056917
test bl, 2
je 0x100566fa
cmp dword [esi + 0x18], eax
jne 0x100566fa
push dword [esi]
push str.Impossible_to_open_the__s_protocol_for_writing_n
jmp 0x100566d4
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10056703
sub ecx, edx
lea eax, [ecx + 0x39]
push eax
call fcn.1006c3c1
pop ecx
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x10056726
push 0xfffffffffffffff4
jmp 0x1005694d
mov dword [ecx], str.URLContext
mov ecx, dword [ebp - 4]
lea eax, [ecx + 0x38]
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 0x1005673b
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 + 0x38], 0
je 0x100568f7
push dword [esi + 0x38]
call fcn.1006c3c1
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x1005671f
cmp dword [esi + 0x3c], 0
je 0x100568fa
mov edi, dword [esi]
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10056790
push 0x2c
push dword [ecx + 0xc]
sub edi, edx
call fcn.10133c90
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
mov edx, dword [ecx + 8]
mov ecx, dword [esi + 0x3c]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
push dword [ecx + 8]
call fcn.1006d095
mov eax, dword [ebp - 4]
push edi
push dword [eax + 0xc]
push dword [esi]
call fcn.10139280
add esp, 0x18
test eax, eax
jne 0x100568f7
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
add eax, edi
cmp eax, ebx
jne 0x100568fa
mov edi, dword [ebp - 8]
xor ebx, ebx
mov esi, dword [esi]
mov al, byte [edi + 1]
add edi, 2
mov byte [ebp + 0x17], al
xor edx, edx
movzx eax, byte [esi + edx]
mov ebx, str.subfile
push 0
cmp al, byte [ebx + edx]
pop ebx
jne 0x10056920
inc edx
cmp edx, 8
jne 0x100567f9
movsx eax, byte [ebp + 0x17]
mov dword [ebp - 0xc], eax
push eax
push edi
call fcn.10133c90
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100568d1
cmp edi, esi
jae 0x100568d1
push dword [ebp - 0xc]
lea eax, [esi + 1]
push eax
call fcn.10133c90
mov dword [ebp - 0x10], eax
pop ecx
pop ecx
test eax, eax
je 0x100568d1
xor edx, edx
mov ebx, str.start
mov byte [esi], dl
mov ecx, edx
mov byte [eax], dl
movzx eax, byte [edi + ecx]
cmp al, byte [ebx + ecx]
jne 0x1005686d
inc ecx
cmp ecx, 6
jne 0x1005685c
jmp 0x10056883
mov ebx, 0x10174ddc
mov ecx, edx
movzx eax, byte [edi + ecx]
cmp al, byte [ebx + ecx]
jne 0x100568a3
inc ecx
cmp ecx, 4
jne 0x10056874
push edx
lea eax, [esi + 1]
push eax
mov eax, dword [ebp - 4]
push edi
push dword [eax + 8]
call fcn.1006ce04
mov ebx, eax
add esp, 0x10
cmp ebx, 0xabafb008
jne 0x100568bb
jmp 0x100568a8
mov ebx, 0xabafb008
push edi
push str.Key__s_not_found._n
push 0x10
push dword [ebp - 4]
call fcn.1006b450
add esp, 0x10
mov edi, dword [ebp - 0x10]
mov al, byte [ebp + 0x17]
mov byte [esi], al
mov byte [edi], al
inc edi
mov eax, dword [ebp - 0xc]
test ebx, ebx
jns 0x1005681b
test ebx, ebx
js 0x1005691d
cmp edi, esi
jne 0x1005691d
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100568de
sub ecx, edx
lea eax, [esi + 1]
push ecx
push eax
push dword [ebp - 8]
call fcn.10134710
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x1005690f
mov eax, dword [edx]
mov dword [ecx + 0x20], eax
mov eax, dword [edx + 4]
mov dword [ecx + 0x24], eax
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
mov ecx, dword [ebp - 4]
push dword [ebp - 8]
push str.Error_parsing_options_string__s_n
push 0x10
push ecx
call fcn.1006b450
mov eax, dword [ebp - 4]
add eax, 8
push eax
call fcn.1006c376
lea eax, [ebp - 4]
push eax
call fcn.1006c376
mov ecx, dword [ebp - 4]
add esp, 0x18
push 0xffffffffffffffea
pop esi
mov eax, dword [ebp + 8]
and dword [eax], 0
test ecx, ecx
je 0x10056962
add ecx, 8
push ecx
call fcn.1006c376
pop ecx
lea eax, [ebp - 4]
push eax
call fcn.1006c376
pop ecx
mov eax, esi
jmp 0x10056916