Function at 0x140001af0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0x110], rax
lea r8, str.uhaj
mov rsi, rdx
mov edi, ecx
call sub.solv.dll_getopt
test eax, eax
js 0x140001b7f
nop dword [rax]
cmp eax, 0x61
je 0x140001b60
cmp eax, 0x68
je 0x140001c85
cmp eax, 0x6a
je 0x140001b54
cmp eax, 0x75
jne 0x140001c7a
inc dword [0x140006048]
jmp 0x140001b6a
mov dword [0x140006044], 1
jmp 0x140001b6a
mov dword [0x140006040], 1
lea r8, str.uhaj
mov rdx, rsi
mov ecx, edi
call sub.solv.dll_getopt
test eax, eax
jns 0x140001b30
cmp dword [0x140006048], 0
mov qword [rsp + 0x270], rbx
mov qword [rsp + 0x228], r14
mov qword [rsp + 0x220], r15
je 0x140001d44
mov rax, qword [sym.imp.solv.dll_optind]
lea r14d, [rdi + 1]
mov ecx, dword [rax]
cmp ecx, edi
cmovne r14d, edi
cmp ecx, r14d
jge 0x140001cf2
xor r15d, r15d
movsxd rax, ecx
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x40], r15d
cmp qword [rsi + rax*8], r15
je 0x140001c05
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rax
lea rdx, [0x140004578]
mov rax, qword [sym.imp.solv.dll_optind]
movsxd rcx, dword [rax]
mov rcx, qword [rsi + rcx*8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
test rax, rax
je 0x140001cfb
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
call sub.solv.dll_solv_read_userdata
mov ebx, eax
test eax, eax
jne 0x140001d1b
cmp dword [0x140006048], 1
jle 0x140001c8d
cmp dword [rsp + 0x40], r15d
je 0x140001ccd
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
movsxd rdx, dword [rsp + 0x40]
lea r8d, [rbx + 1]
mov rcx, qword [rsp + 0x48]
mov r9, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
je 0x140001ccd
lea rcx, [0x140004604]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 1
call fcn.140002440
int3
xor ecx, ecx
call fcn.140002440
int3
mov ebx, r15d
mov rdi, r15
cmp dword [rsp + 0x40], ebx
jle 0x140001cc1
nop dword [rax]
mov rax, qword [rsp + 0x48]
lea rcx, str._02x
movzx edx, byte [rdi + rax]
call fcn.1400023e0
inc ebx
lea rdi, [rdi + 1]
cmp ebx, dword [rsp + 0x40]
jl 0x140001ca0
lea rcx, [0x14000437c]
call fcn.1400023e0
mov rcx, qword [rsp + 0x48]
call sub.solv.dll_solv_free
mov rax, qword [sym.imp.solv.dll_optind]
inc dword [rax]
mov rax, qword [sym.imp.solv.dll_optind]
mov ecx, dword [rax]
cmp ecx, r14d
jl 0x140001bc3
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [sym.imp.solv.dll_optind]
movsxd rcx, dword [rax]
mov rcx, qword [rsi + rcx*8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.could_not_read_userdata:_error__d_n
mov rcx, rax
call fcn.1400018e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x230], r13
call sub.solv.dll_pool_create
xor r8d, r8d
mov qword [rsp + 0x68], rax
lea rdx, [0x140001a20]
mov rcx, rax
mov r13, rax
call sub.solv.dll_pool_setloadcallback
cmp dword [0x140006044], 0
jne 0x140001d8a
mov edx, 1
mov rcx, r13
call sub.solv.dll_pool_setdebuglevel
cmp dword [0x140006044], 0
je 0x140001d95
or dword [r13 + 0xf8], 0x40000000
mov rax, qword [sym.imp.solv.dll_optind]
cmp dword [rax], edi
jge 0x140001e16
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rax
lea rdx, [0x140004578]
mov rax, qword [sym.imp.solv.dll_optind]
movsxd rcx, dword [rax]
mov rcx, qword [rsi + rcx*8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
test rax, rax
mov rax, qword [sym.imp.solv.dll_optind]
je 0x140001e60
movsxd rdx, dword [rax]
mov rcx, r13
mov rdx, qword [rsi + rdx*8]
call sub.solv.dll_repo_create
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r8d, r8d
mov rcx, rbx
mov rdx, rax
call sub.solv.dll_repo_add_solv
test eax, eax
jne 0x140001e2c
mov rax, qword [sym.imp.solv.dll_optind]
inc dword [rax]
mov rax, qword [sym.imp.solv.dll_optind]
cmp dword [rax], edi
jl 0x140001da0
cmp dword [r13 + 0x54], 0
jne 0x140001ed9
cmp edi, 1
je 0x140001e79
mov rdx, qword [rsi + 8]
jmp 0x140001e80
mov rcx, r13
call sub.solv.dll_pool_errstr
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.could_not_read_repository:__s_n
mov rcx, rax
call fcn.1400018e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movsxd rcx, dword [rax]
mov rcx, qword [rsi + rcx*8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, str._stdin_
mov rcx, r13
call sub.solv.dll_repo_create
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r8d, r8d
mov rcx, rbx
mov rdx, rax
call sub.solv.dll_repo_add_solv
test eax, eax
je 0x140001ed9
mov rcx, r13
call sub.solv.dll_pool_errstr
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.could_not_read_repository:__s_n
mov rcx, rax
call fcn.1400018e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x140006044], 0
mov qword [rsp + 0x238], r12
je 0x14000216f
xor eax, eax
lea rcx, [0x1400043dc]
xor r14d, r14d
mov qword [rsp + 0x58], rax
mov r12d, r14d
mov qword [rsp + 0x60], rax
call fcn.1400023e0
lea rcx, str.___repositories_:___n
call fcn.1400023e0
mov r15d, 1
cmp dword [r13 + 0x50], r15d
jle 0x140002148
mov eax, 8
mov qword [rsp + 0x48], rax
mov rbx, qword [r13 + 0x48]
mov rbx, qword [rax + rbx]
test rbx, rbx
je 0x140002121
mov esi, r14d
test r12d, r12d
je 0x140001f57
lea rcx, str._n_____
call fcn.1400023e0
lea rcx, [0x140004660]
call fcn.1400023e0
mov rax, qword [rsp + 0x58]
mov r12d, 1
test rax, rax
je 0x140001f7b
mov byte [rax], sil
mov rax, qword [rsp + 0x58]
cmp dword [rbx + 0x44], esi
je 0x140001fe4
mov dword [rsp + 0x64], 6
mov edi, r12d
cmp dword [rbx + 0x44], r12d
jle 0x140001fe4
lea r13, [0x1400017c0]
nop dword [rax + rax]
mov edx, edi
mov rcx, rbx
call sub.solv.dll_repo_id2repodata
test rax, rax
je 0x140001fda
xor r8d, r8d
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov r9d, 0x600
mov rcx, rax
mov qword [rsp + 0x20], r13
lea edx, [r8 - 1]
call sub.solv.dll_repodata_search
inc edi
cmp edi, dword [rbx + 0x44]
jl 0x140001fa0
mov rax, qword [rsp + 0x58]
mov r13, qword [rsp + 0x68]
cmp byte [rax], sil
je 0x140001ff5
lea rcx, [0x140004398]
call fcn.1400023e0
lea rcx, str._______solvables_:___n
call fcn.1400023e0
movsxd rdi, dword [rbx + 0x20]
mov rax, qword [rbx + 0x18]
imul rcx, rdi, 0x38
add rcx, qword [rax + 0x60]
cmp edi, dword [rbx + 0x24]
jge 0x140002110
nop word [rax + rax]
cmp qword [rcx + 0x10], rbx
jne 0x1400020e6
test esi, esi
je 0x14000203a
lea rcx, str._n__________n
call fcn.1400023e0
lea rcx, str._________n
call fcn.1400023e0
mov rdx, qword [rbx + 0x18]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x30], 0x600
mov r9d, edi
mov qword [rsp + 0x28], r14
mov r8, rbx
mov dword [rsp + 0x20], r14d
mov esi, r12d
call sub.solv.dll_dataiterator_init
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14000207c
mov byte [rax], r14b
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x64], 0xa
call sub.solv.dll_dataiterator_step
test eax, eax
je 0x1400020dc
nop dword [rax]
nop word [rax + rax]
cmp dword [0x140006044], r14d
lea r9, [rbp - 0x48]
mov r8, qword [rbp - 0x50]
mov rcx, rbx
mov rdx, qword [rbp - 0x78]
jne 0x1400020bf
call fcn.140001010
jmp 0x1400020ce
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.140001360
lea rcx, [rsp + 0x70]
call sub.solv.dll_dataiterator_step
test eax, eax
jne 0x1400020a0
lea rcx, [rsp + 0x70]
call sub.solv.dll_dataiterator_free
inc edi
movsxd rax, edi
imul rcx, rax, 0x38
mov rax, qword [rbx + 0x18]
add rcx, qword [rax + 0x60]
cmp edi, dword [rbx + 0x24]
jl 0x140002020
test esi, esi
je 0x140002110
lea rcx, str._n_________n
call fcn.1400023e0
lea rcx, str.________n
call fcn.1400023e0
mov rax, qword [rsp + 0x48]
add rax, 8
inc r15d
mov qword [rsp + 0x48], rax
cmp r15d, dword [r13 + 0x50]
jl 0x140001f32
test r12d, r12d
je 0x140002148
lea rcx, str._____n
call fcn.1400023e0
lea rcx, str.____n
call fcn.1400023e0
lea rcx, [0x1400046cc]
call fcn.1400023e0
mov rcx, qword [rsp + 0x58]
call sub.solv.dll_solv_free
jmp 0x1400023c4
mov r9d, dword [r13 + 0x20]
lea rcx, str.pool_contains__d_strings___d_rels__string_size_is__d_n
mov r8d, dword [r13 + 0x40]
mov edx, dword [r13 + 0x10]
call fcn.1400023e0
xor edi, edi
mov esi, 1
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x50], esi
cmp dword [r13 + 0x50], esi
jle 0x1400023c4
mov r14d, 8
lea rbx, [0x1400017c0]
mov qword [rsp + 0x48], r14
mov rax, qword [r13 + 0x48]
mov r15, qword [r14 + rax]
test r15, r15
je 0x1400023ab
mov edx, dword [r15 + 0x44]
test edx, edx
je 0x14000231b
dec edx
lea rcx, str.repo_contains__d_repodata_sections:_n
call fcn.1400023e0
mov r13d, 1
cmp dword [r15 + 0x44], r13d
jle 0x14000230a
nop dword [rax]
mov edx, r13d
mov rcx, r15
call sub.solv.dll_repo_id2repodata
mov r14, rax
test rax, rax
je 0x1400022fd
mov r9d, dword [rax + 0x60]
lea rcx, str._nrepodata__d_has__d_keys___d_schemata_n
mov r8d, dword [rax + 0x30]
dec r9d
dec r8d
mov edx, r13d
call fcn.1400023e0
mov r12d, 1
cmp dword [r14 + 0x30], r12d
jbe 0x140002289
mov rsi, qword [r14 + 0x28]
mov rcx, qword [r15 + 0x18]
mov edi, r12d
add rdi, rdi
mov edx, dword [rsi + rdi*8 + 4]
call sub.solv.dll_pool_id2str
mov rcx, qword [r14 + 0x28]
mov rbx, rax
mov edx, dword [rcx + rdi*8]
mov rcx, qword [r15 + 0x18]
call sub.solv.dll_pool_id2str
mov ecx, dword [rsi + rdi*8 + 0xc]
mov rdx, rax
mov r9d, dword [rsi + rdi*8 + 8]
mov r8, rbx
mov dword [rsp + 0x20], ecx
lea rcx, str.___s__type__s_size__d_storage__d__n
call fcn.1400023e0
inc r12d
cmp r12d, dword [r14 + 0x30]
jb 0x140002230
lea rbx, [0x1400017c0]
cmp dword [r14 + 0xa0], 0
je 0x1400022aa
mov r8d, dword [r14 + 0x88]
lea rcx, str.__localpool_has__d_strings__size_is__d_n
mov edx, dword [r14 + 0x78]
call fcn.1400023e0
mov edx, dword [r14 + 0xb0]
test edx, edx
je 0x1400022c1
lea rcx, str.__localpool_has__d_directories_n
call fcn.1400023e0
lea rcx, [0x14000437c]
call fcn.1400023e0
xor r8d, r8d
mov qword [rsp + 0x28], 0
mov r9d, 0x600
mov qword [rsp + 0x20], rbx
mov rcx, r14
lea edx, [r8 - 1]
call sub.solv.dll_repodata_search
inc r13d
cmp r13d, dword [r15 + 0x44]
jl 0x1400021f0
mov edi, dword [rsp + 0x40]
mov esi, dword [rsp + 0x50]
mov r14, qword [rsp + 0x48]
lea rcx, [0x14000437c]
call fcn.1400023e0
mov r13, qword [rsp + 0x68]
mov r8d, dword [r15 + 0x28]
lea rcx, str.repo__d_contains__d_solvables_n
mov edx, esi
call fcn.1400023e0
mov r8d, dword [r15 + 0x24]
lea rcx, str.repo_start:__d_end:__d_n
mov edx, dword [r15 + 0x20]
call fcn.1400023e0
movsxd rbx, dword [r15 + 0x20]
mov rax, qword [r15 + 0x18]
imul rcx, rbx, 0x38
add rcx, qword [rax + 0x60]
cmp ebx, dword [r15 + 0x24]
jge 0x1400023a4
cmp qword [rcx + 0x10], r15
jne 0x140002389
lea rcx, [0x14000437c]
inc edi
call fcn.1400023e0
mov r8d, ebx
lea rcx, str.solvable__d___d_:_n
mov edx, edi
call fcn.1400023e0
xor r8d, r8d
mov edx, ebx
mov rcx, r15
call fcn.140001800
inc ebx
movsxd rax, ebx
imul rcx, rax, 0x38
mov rax, qword [r15 + 0x18]
add rcx, qword [rax + 0x60]
cmp ebx, dword [r15 + 0x24]
jl 0x140002357
mov dword [rsp + 0x40], edi
lea rbx, [0x1400017c0]
inc esi
add r14, 8
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x48], r14
cmp esi, dword [r13 + 0x50]
jl 0x1400021b2
mov rcx, r13
call sub.solv.dll_pool_free
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov r12, qword [rsp + 0x238]
int3