Function at 0x14004c850
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rsi
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rsi, rcx
xor r13d, r13d
mov rcx, qword [rcx + 0x50]
mov ebx, dword [rcx + 4]
test ebx, ebx
je 0x14004c892
mov rdx, qword [rcx + 0x10]
xor r9d, r9d
add rdx, rcx
xor r8d, r8d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, ebx
jae 0x14004c892
mov al, 1
jmp 0x14004c894
xor al, al
cmp byte [rsi + 0x60], r13b
je 0x14004c8a2
test al, al
je 0x14004d1f6
mov rcx, rsi
mov qword [rsp + 0x98], rdi
mov byte [rsi + 0x60], 1
call fcn.14004eb80
lea rcx, [rsi + 0x50]
call fcn.14004bfe0
lea rbx, [0x140000000]
mov rdx, 0xffffffff80000001
lea rax, [rbx + 0x474cf0]
lea r8, [rbp + 0x6f]
mov qword [rbp + 0x6f], rax
lea rcx, [rsi + 0x50]
call fcn.14004bce0
mov rax, qword [rbp + 0x6f]
mov edi, 0xffffffff
mov ecx, dword [rax]
test ecx, ecx
je 0x14004c907
cmp ecx, edi
je 0x14004c91b
mov rax, qword [rbp + 0x6f]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004c91b
mov rcx, qword [rbp + 0x6f]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
lea rax, [rbx + 0x474d80]
mov rdx, 0xffffffff80000002
lea r8, [rbp + 0x6f]
mov qword [rbp + 0x6f], rax
lea rcx, [rsi + 0x50]
call fcn.14004bce0
mov rax, qword [rbp + 0x6f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004c957
cmp ecx, edi
je 0x14004c96b
mov rax, qword [rbp + 0x6f]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004c96b
mov rcx, qword [rbp + 0x6f]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
lea rax, [rbx + 0x474e10]
mov rdx, 0xffffffff80000002
lea r8, [rbp + 0x6f]
mov qword [rbp + 0x6f], rax
lea rcx, [rsi + 0x50]
call fcn.14004bce0
mov rax, qword [rbp + 0x6f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004c9a7
cmp ecx, edi
je 0x14004c9bb
mov rax, qword [rbp + 0x6f]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004c9bb
mov rcx, qword [rbp + 0x6f]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
lea r14, [0x140484d90]
mov r8d, edi
lea rdx, str.winhttp
mov qword [rbp - 0x31], r14
lea rcx, [rbp + 0x6f]
call fcn.1400ba830
mov rbx, qword [rax]
mov qword [rax], r14
mov rax, qword [rbp + 0x6f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004c9fc
cmp ecx, edi
je 0x14004ca10
mov rax, qword [rbp + 0x6f]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004ca10
mov rcx, qword [rbp + 0x6f]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
mov rcx, qword [rbp - 0x31]
mov qword [rbp - 0x31], rbx
mov eax, dword [rcx]
test eax, eax
je 0x14004ca2d
cmp eax, edi
je 0x14004ca3d
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14004ca3d
mov edx, 2
mov r8d, 8
call fcn.1400affb0
lea rcx, [rbp - 0x31]
mov qword [rbp - 0x39], r13
mov byte [rbp - 0x29], r13b
call fcn.1400c02d0
mov rcx, rax
mov dl, 1
call fcn.1401626b0
mov qword [rbp - 0x39], rax
mov byte [rbp - 0x29], 1
test rax, rax
je 0x14004d1bf
lea rdx, str.WinHttpOpen
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx ecx, byte [rbp - 0x29]
mov qword [0x140496888], rax
test cl, cl
jne 0x14004caa6
lea rcx, [rbp - 0x31]
call fcn.1400c02d0
mov rcx, rax
mov dl, 1
call fcn.1401626b0
mov cl, 1
mov qword [rbp - 0x39], rax
mov byte [rbp - 0x29], cl
jmp 0x14004caaa
mov rax, qword [rbp - 0x39]
test rax, rax
jne 0x14004cab4
mov rdx, r13
jmp 0x14004cacf
lea rdx, str.WinHttpCloseHandle
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx ecx, byte [rbp - 0x29]
mov rdx, rax
mov rax, qword [rbp - 0x39]
mov qword [0x1404968a0], rdx
test cl, cl
jne 0x14004caf6
lea rcx, [rbp - 0x31]
call fcn.1400c02d0
mov rcx, rax
mov dl, 1
call fcn.1401626b0
mov cl, 1
mov qword [rbp - 0x39], rax
mov byte [rbp - 0x29], cl
test rax, rax
jne 0x14004cb00
mov rdx, r13
jmp 0x14004cb1b
lea rdx, str.WinHttpGetProxyForUrl
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx ecx, byte [rbp - 0x29]
mov rdx, rax
mov rax, qword [rbp - 0x39]
mov qword [0x140496880], rdx
test cl, cl
jne 0x14004cb42
lea rcx, [rbp - 0x31]
call fcn.1400c02d0
mov rcx, rax
mov dl, 1
call fcn.1401626b0
mov cl, 1
mov qword [rbp - 0x39], rax
mov byte [rbp - 0x29], cl
test rax, rax
jne 0x14004cb4c
mov rdx, r13
jmp 0x14004cb67
lea rdx, str.WinHttpGetDefaultProxyConfiguration
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx ecx, byte [rbp - 0x29]
mov rdx, rax
mov rax, qword [rbp - 0x39]
mov qword [0x140496890], rdx
test cl, cl
jne 0x14004cb8d
lea rcx, [rbp - 0x31]
call fcn.1400c02d0
mov rcx, rax
mov dl, 1
call fcn.1401626b0
mov qword [rbp - 0x39], rax
mov byte [rbp - 0x29], 1
test rax, rax
jne 0x14004cb97
mov rax, r13
jmp 0x14004cba7
lea rdx, str.WinHttpGetIEProxyConfigForCurrentUser
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x90], r12
lea rcx, [rbp - 9]
mov qword [rsp + 0x88], r15
mov qword [0x140496898], rax
call rax
test eax, eax
je 0x14004cedf
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x14004cc4f
mov r8d, edi
lea rcx, [rbp + 0x6f]
call fcn.1400ba830
mov rbx, qword [rax]
mov qword [rax], r14
mov rax, qword [rbp + 0x6f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004cc04
cmp ecx, edi
je 0x14004cc18
mov rax, qword [rbp + 0x6f]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004cc18
mov rcx, qword [rbp + 0x6f]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
mov rcx, qword [rsi + 0x30]
mov qword [rsi + 0x30], rbx
mov eax, dword [rcx]
test eax, eax
je 0x14004cc35
cmp eax, edi
je 0x14004cc45
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14004cc45
mov edx, 2
mov r8d, 8
call fcn.1400affb0
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdx, qword [rbp + 7]
test rdx, rdx
je 0x14004cd81
mov r8d, edi
lea rcx, [rbp + 0x77]
call fcn.1400ba830
mov rcx, qword [rax]
mov qword [rbp + 0x6f], rcx
mov qword [rax], r14
mov rax, qword [rbp + 0x77]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004cc8f
cmp ecx, edi
je 0x14004cca3
mov rax, qword [rbp + 0x77]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004cca3
mov rcx, qword [rbp + 0x77]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
lea rdx, [rbp + 0x6f]
lea rcx, [rbp + 0x7f]
call fcn.14004ed40
lea r12, [rsi + 0x38]
mov rdx, rax
mov rcx, r12
call fcn.14004bc10
mov rax, qword [rbp + 0x7f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004ccdc
cmp ecx, edi
je 0x14004cd44
mov rax, qword [rbp + 0x7f]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004cd44
mov r15, qword [rbp + 0x7f]
movsxd rbx, dword [r15 + 0xc]
movsxd r14, dword [r15 + 8]
add rbx, 2
add r14, 2
lea rbx, [r15 + rbx*8]
lea r14, [r15 + r14*8]
cmp r14, rbx
je 0x14004cd35
nop dword [rax]
mov rcx, qword [rbx - 8]
sub rbx, 8
mov eax, dword [rcx]
test eax, eax
je 0x14004cd1d
cmp eax, edi
je 0x14004cd30
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14004cd30
mov rcx, qword [rbx]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
cmp rbx, r14
jne 0x14004cd00
mov rcx, r15
call fcn.1400c6df0
lea r14, [0x140484d90]
mov rax, qword [rbp + 0x6f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004cd61
cmp ecx, edi
je 0x14004cd75
mov rax, qword [rbp + 0x6f]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004cd75
mov rcx, qword [rbp + 0x6f]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14004cd85
lea r12, [rsi + 0x38]
mov rdx, qword [rbp + 0xf]
test rdx, rdx
je 0x14004ceac
mov r8d, edi
lea rcx, [rbp + 0x77]
call fcn.1400ba830
mov rcx, qword [rax]
mov qword [rbp + 0x6f], rcx
mov qword [rax], r14
mov rax, qword [rbp + 0x77]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004cdc5
cmp ecx, edi
je 0x14004cdd9
mov rax, qword [rbp + 0x77]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004cdd9
mov rcx, qword [rbp + 0x77]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
lea rdx, [rbp + 0x6f]
lea rcx, [rbp + 0x7f]
call fcn.14004ed40
lea rcx, [rsi + 0x40]
mov rdx, rax
call fcn.14004bc10
mov rax, qword [rbp + 0x7f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004ce0f
cmp ecx, edi
je 0x14004ce6d
mov rax, qword [rbp + 0x7f]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004ce6d
mov r15, qword [rbp + 0x7f]
movsxd rbx, dword [r15 + 0xc]
movsxd r14, dword [r15 + 8]
add rbx, 2
add r14, 2
lea rbx, [r15 + rbx*8]
lea r14, [r15 + r14*8]
cmp r14, rbx
je 0x14004ce65
mov rcx, qword [rbx - 8]
sub rbx, 8
mov eax, dword [rcx]
test eax, eax
je 0x14004ce4d
cmp eax, edi
je 0x14004ce60
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14004ce60
mov rcx, qword [rbx]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
cmp rbx, r14
jne 0x14004ce30
mov rcx, r15
call fcn.1400c6df0
mov rax, qword [rbp + 0x6f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004ce8a
cmp ecx, edi
je 0x14004ce9e
mov rax, qword [rbp + 0x6f]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004ce9e
mov rcx, qword [rbp + 0x6f]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea r12, [rsi + 0x38]
call fcn.14004c180
test al, al
je 0x14004d11c
mov rcx, qword [r12]
mov eax, dword [rcx + 8]
cmp dword [rcx + 0xc], eax
jne 0x14004d11c
mov rcx, qword [rsi + 0x40]
lea rbx, [rsi + 0x40]
mov eax, dword [rcx + 8]
cmp dword [rcx + 0xc], eax
jne 0x14004d11c
jmp 0x14004cee3
lea rbx, [rsi + 0x40]
lea rcx, [rbp - 0x21]
call qword [0x140496890]
test eax, eax
je 0x14004d0fe
cmp dword [rbp - 0x21], 3
jne 0x14004d0fe
mov rdx, qword [rbp - 0x11]
lea rcx, [rbp + 0x77]
mov r8d, edi
call fcn.14004c7e0
mov rdx, rax
lea rcx, [rbp + 0x6f]
call fcn.14004ed40
mov rdx, rax
mov rcx, rbx
call fcn.14004bc10
mov rax, qword [rbp + 0x6f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004cf43
cmp ecx, edi
je 0x14004cfad
mov rax, qword [rbp + 0x6f]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004cfad
mov r15, qword [rbp + 0x6f]
movsxd rbx, dword [r15 + 0xc]
movsxd r14, dword [r15 + 8]
add rbx, 2
add r14, 2
lea rbx, [r15 + rbx*8]
lea r14, [r15 + r14*8]
cmp r14, rbx
je 0x14004cfa5
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx - 8]
sub rbx, 8
mov eax, dword [rcx]
test eax, eax
je 0x14004cf8d
cmp eax, edi
je 0x14004cfa0
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14004cfa0
mov rcx, qword [rbx]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
cmp rbx, r14
jne 0x14004cf70
mov rcx, r15
call fcn.1400c6df0
mov rax, qword [rbp + 0x77]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004cfca
cmp ecx, edi
je 0x14004cfde
mov rax, qword [rbp + 0x77]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004cfde
mov rcx, qword [rbp + 0x77]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
mov rdx, qword [rbp - 0x19]
lea rcx, [rbp + 0x77]
mov r8d, edi
call fcn.1400ba830
mov rcx, qword [rax]
mov qword [rbp + 0x6f], rcx
lea rcx, [0x140484d90]
mov qword [rax], rcx
mov rax, qword [rbp + 0x77]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004d01c
cmp ecx, edi
je 0x14004d030
mov rax, qword [rbp + 0x77]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004d030
mov rcx, qword [rbp + 0x77]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
lea rdx, [rbp + 0x6f]
lea rcx, [rbp + 0x7f]
call fcn.14004ed40
lea rcx, [rsi + 0x38]
mov rdx, rax
call fcn.14004bc10
mov rax, qword [rbp + 0x7f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004d066
cmp ecx, edi
je 0x14004d0cd
mov rax, qword [rbp + 0x7f]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004d0cd
mov r15, qword [rbp + 0x7f]
movsxd rbx, dword [r15 + 0xc]
movsxd r14, dword [r15 + 8]
add rbx, 2
add r14, 2
lea rbx, [r15 + rbx*8]
lea r14, [r15 + r14*8]
cmp r14, rbx
je 0x14004d0c5
nop word [rax + rax]
mov rcx, qword [rbx - 8]
sub rbx, 8
mov eax, dword [rcx]
test eax, eax
je 0x14004d0ad
cmp eax, edi
je 0x14004d0c0
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14004d0c0
mov rcx, qword [rbx]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
cmp rbx, r14
jne 0x14004d090
mov rcx, r15
call fcn.1400c6df0
mov rax, qword [rbp + 0x6f]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004d0ea
cmp ecx, edi
je 0x14004d0fe
mov rax, qword [rbp + 0x6f]
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x14004d0fe
mov rcx, qword [rbp + 0x6f]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14004d10d
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14004d11c
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r15, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov qword [rsi + 8], r13
cmp dword [rbp - 9], r13d
jne 0x14004d140
mov rax, qword [rsi + 0x30]
cmp dword [rax + 4], r13d
je 0x14004d1a4
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
lea rcx, str.Qt_System_Proxy_access_1.0
mov edx, 1
call qword [0x140496888]
mov qword [rsi + 8], rax
test rax, rax
je 0x14004d1bf
mov byte [rsi + 0x62], 1
mov qword [rsi + 0x14], r13
mov qword [rsi + 0x1c], r13
mov qword [rsi + 0x24], r13
mov dword [rsi + 0x2c], r13d
cmp dword [rbp - 9], r13d
je 0x14004d190
mov dword [rsi + 0x10], 1
mov dword [rsi + 0x14], 3
jmp 0x14004d1a4
lea rcx, [rsi + 0x30]
mov dword [rsi + 0x10], 2
call fcn.1400c02d0
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x62], r13b
jne 0x14004d1ba
mov rcx, qword [rsi + 0x38]
mov eax, dword [rcx + 8]
cmp dword [rcx + 0xc], eax
jne 0x14004d1ba
xor al, al
jmp 0x14004d1bc
mov al, 1
mov byte [rsi + 0x61], al
mov rax, qword [rbp - 0x31]
mov ecx, dword [rax]
test ecx, ecx
je 0x14004d1da
cmp ecx, edi
je 0x14004d1ee
mov rax, qword [rbp - 0x31]
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14004d1ee
mov rcx, qword [rbp - 0x31]
mov edx, 2
mov r8d, 8
call fcn.1400affb0
mov rdi, qword [rsp + 0x98]
add rsp, 0xa0
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret