Function at 0x516bf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x14], ebp
mov byte [esp + 0x13], 0
mov eax, dword [edi + 0x1e8]
test byte [eax + 0x44], 3
je 0x516c48
cmp byte [edi + 0x1d6], 0
je 0x516c2a
cmp byte [edi + 0x1ce], 0
jne 0x516c48
push dword [ebx + 0x7c]
call fcn.0051de20
add esp, 4
test al, al
je 0x516c48
cmp byte [ebx + 0xd64], 3
mov eax, 2
cmovae esi, eax
test esi, esi
setne byte [esp + 0x24]
test byte [ebx + 0x96c], 0x28
je 0x516c69
mov eax, dword [edi + 0x1e8]
mov byte [esp + 0x12], 1
test byte [eax + 0x44], 3
jne 0x516c6e
mov byte [esp + 0x12], 0
cmp byte [edi + 0x1ca], 0
je 0x516c93
test byte [ebx + 0x97c], 0x28
je 0x516c93
mov eax, dword [edi + 0x1e8]
test byte [eax + 0x44], 3
je 0x516c93
mov byte [esp + 0x28], 1
jmp 0x516c99
xor al, al
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x30]
mov byte [eax], 0
mov eax, dword [esp + 0x34]
mov byte [eax], 0
push dword [ebx + 0x890]
push edi
push ebx
call fcn.00522070
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x5173fa
cmp dword [eax], 2
mov edx, str.serially
mov ecx, str.can_multiplex
cmovne ecx, edx
push ecx
push eax
push str.Found_bundle_for_host:__p___s_
push ebx
call fcn.00524050
add esp, 0x10
test esi, esi
mov esi, dword [esp + 0x18]
je 0x516d84
cmp dword [esi], ebp
jne 0x516d45
cmp byte [ebx + 0x6eb], 0
je 0x516d32
push str.Server_doesnt_support_multiplex_yet__wait
push ebx
call fcn.00524050
mov eax, dword [esp + 0x3c]
add esp, 8
mov byte [eax], 1
cmp dword [ebx + 0x84], ebp
je 0x517486
push 5
push ebx
call fcn.0051bec0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push str.Server_doesnt_support_multiplex__yet_
push ebx
call fcn.00524050
add esp, 8
mov byte [esp + 0x24], 0
cmp dword [esi], 2
jne 0x516d6c
push dword [ebx + 0x7c]
call fcn.0051de20
add esp, 4
test al, al
jne 0x516d6c
push str.Could_multiplex__but_not_asked_to
push ebx
call fcn.00524050
add esp, 8
mov byte [esp + 0x24], 0
cmp dword [esi], 0xffffffff
jne 0x516d84
push str.Can_not_multiplex__even_if_we_wanted_to
push ebx
call fcn.00524050
add esp, 8
mov byte [esp + 0x24], 0
mov esi, dword [esi + 8]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x5173fa
mov eax, dword [esp + 0x1c]
xor ebp, ebp
mov esi, dword [esi]
mov eax, dword [eax + 8]
cmp byte [esi + 0x45a], 0
mov dword [esp + 0x1c], eax
jne 0x516e19
cmp byte [esi + 0x1ce], 0
jne 0x516e19
push ebx
push esi
call fcn.00519720
add esp, 8
test al, al
je 0x516dd0
push 1
push esi
push ebx
call fcn.00517a00
add esp, 0xc
jmp 0x516e19
mov al, byte [ebx + 0x4c8]
test al, al
je 0x516de2
cmp al, byte [esi + 0x458]
jne 0x516e19
mov eax, dword [esp + 0x18]
cmp dword [eax], 2
jne 0x516df1
mov ebp, dword [esi + 0x248]
cmp byte [esp + 0x24], 0
jne 0x516e2e
test ebp, ebp
jne 0x516e19
cmp byte [esi + 0xb0], 0
jne 0x516e2e
push dword [esi + 0x3c]
push dword [esi + 0x38]
push str.Connection__I64d_is_still_name_resolving__cant_reuse
push ebx
call fcn.00524050
add esp, 0x10
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x516d93
jmp 0x5173fa
push 0
push esi
call fcn.00523c90
add esp, 8
test al, al
jne 0x516e4f
push dword [esi + 0x3c]
mov byte [esp + 0x17], 1
push dword [esi + 0x38]
push str.Connection__I64disnt_open_enough__cant_reuse
jmp 0x516e10
mov ecx, dword [edi + 0x42c]
mov eax, dword [esi + 0x42c]
test ecx, ecx
je 0x516e9a
test eax, eax
je 0x516e19
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x516e83
test dl, dl
je 0x516e7f
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x516e83
add ecx, 2
add eax, 2
test dl, dl
jne 0x516e63
xor eax, eax
jmp 0x516e88
sbb eax, eax
or eax, 1
test eax, eax
jne 0x516e19
mov al, byte [edi + 0x1e3]
cmp al, byte [esi + 0x1e3]
jmp 0x516e9c
test eax, eax
jne 0x516e19
mov edx, dword [edi + 0x1e8]
mov ecx, dword [esi + 0x1e8]
mov eax, dword [edx + 0x4c]
xor eax, dword [ecx + 0x4c]
test al, 1
je 0x516ed1
mov eax, dword [ecx + 0x48]
cmp eax, dword [edx + 0x44]
jne 0x516e19
cmp byte [esi + 0x1e4], 0
je 0x516e19
mov al, byte [edi + 0x1c8]
cmp al, byte [esi + 0x1c8]
jne 0x516e19
mov al, byte [edi + 0x1c9]
cmp al, byte [esi + 0x1c9]
jne 0x516e19
test al, al
je 0x516f6b
mov al, byte [edi + 0x84]
cmp al, byte [esi + 0x84]
jne 0x516e19
mov eax, dword [edi + 0x80]
cmp eax, dword [esi + 0x80]
jne 0x516e19
push dword [esi + 0x78]
push dword [edi + 0x78]
call fcn.00510c80
add esp, 8
test eax, eax
je 0x516e19
push dword [esi + 0x88]
push dword [edi + 0x88]
call fcn.00510c20
add esp, 8
test eax, eax
jne 0x516e19
push dword [esi + 0x8c]
push dword [edi + 0x8c]
call fcn.00510c20
add esp, 8
test eax, eax
jne 0x516e19
mov al, byte [edi + 0x1d1]
cmp al, byte [esi + 0x1d1]
jne 0x516e19
mov al, byte [edi + 0x1d2]
cmp al, byte [esi + 0x1d2]
jne 0x516e19
cmp byte [edi + 0x1c8], 0
je 0x517041
mov al, byte [edi + 0xa4]
cmp al, byte [esi + 0xa4]
jne 0x516e19
mov eax, dword [edi + 0xa0]
cmp eax, dword [esi + 0xa0]
jne 0x516e19
push dword [esi + 0x98]
push dword [edi + 0x98]
call fcn.00510c80
add esp, 8
test eax, eax
je 0x516e19
mov al, byte [edi + 0x1cb]
cmp al, byte [esi + 0x1cb]
jne 0x516e19
mov al, byte [edi + 0xa4]
cmp al, 2
je 0x516ffc
cmp al, 3
jne 0x517041
cmp al, byte [esi + 0xa4]
jne 0x516e19
mov eax, dword [edi + 0x1e8]
test byte [eax + 0x4c], 1
je 0x517023
lea eax, [esi + 0x188]
push eax
lea eax, [edi + 0x188]
jmp 0x517030
lea eax, [esi + 0x148]
push eax
lea eax, [edi + 0x148]
push eax
call fcn.00513fc0
add esp, 8
test al, al
je 0x516e19
cmp byte [esp + 0x24], 0
jne 0x517051
cmp dword [esi + 0x248], 0
jmp 0x517068
cmp dword [esi + 0x248], 0
je 0x51706e
mov eax, dword [esi + 0x23c]
mov eax, dword [eax]
mov eax, dword [eax + 0x7c]
cmp eax, dword [ebx + 0x7c]
jne 0x516e19
mov ecx, dword [edi + 0x430]
test ecx, ecx
jne 0x517081
cmp word [edi + 0x450], cx
je 0x5170ed
mov ax, word [esi + 0x450]
cmp ax, word [edi + 0x450]
jne 0x516e19
mov ax, word [esi + 0x434]
cmp ax, word [edi + 0x434]
jne 0x516e19
test ecx, ecx
je 0x5170ed
mov eax, dword [esi + 0x430]
test eax, eax
je 0x516e19
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5170e0
test dl, dl
je 0x5170dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5170e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5170c0
xor eax, eax
jmp 0x5170e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x516e19
mov eax, dword [edi + 0x1e8]
test byte [eax + 0x4c], 0x80
jne 0x517169
push dword [esi + 0xe0]
push dword [edi + 0xe0]
call fcn.00510c20
add esp, 8
test eax, eax
jne 0x516e19
push dword [esi + 0xe4]
push dword [edi + 0xe4]
call fcn.00510c20
add esp, 8
test eax, eax
jne 0x516e19
push dword [esi + 0xec]
push dword [edi + 0xec]
call fcn.00510c20
add esp, 8
test eax, eax
jne 0x516e19
push dword [esi + 0xf0]
push dword [edi + 0xf0]
call fcn.00510c20
add esp, 8
test eax, eax
jne 0x516e19
mov al, byte [edi + 0x45b]
cmp al, byte [esi + 0x45b]
jne 0x516e19
mov ecx, dword [edi + 0x1e8]
test byte [ecx + 0x44], 3
je 0x5171af
mov al, byte [esi + 0x459]
cmp al, 0x14
jb 0x51719e
cmp byte [ebx + 0xd64], 3
jb 0x516e19
cmp al, 0x1e
jb 0x5171af
cmp byte [ebx + 0xd64], 0x1e
jb 0x516e19
test byte [ecx + 0x48], 0xc
je 0x517211
push dword [esi + 0x3d0]
push dword [edi + 0x3d0]
call fcn.00510c20
add esp, 8
test eax, eax
jne 0x516e19
push dword [esi + 0x3d4]
push dword [edi + 0x3d4]
call fcn.00510c20
add esp, 8
test eax, eax
jne 0x516e19
mov al, byte [edi + 0x420]
cmp al, byte [esi + 0x420]
jne 0x516e19
mov al, byte [edi + 0x421]
cmp al, byte [esi + 0x421]
jne 0x516e19
mov ecx, dword [edi + 0x1e8]
test byte [ecx + 0x4c], 1
jne 0x517233
cmp byte [edi + 0x1c8], 0
je 0x517233
cmp byte [edi + 0x1cb], 0
je 0x5172fa
mov eax, dword [esi + 0x1e8]
push dword [eax]
push dword [ecx]
call fcn.00510c80
add esp, 8
test eax, eax
jne 0x51726e
mov eax, dword [esi + 0x1e8]
mov ecx, dword [edi + 0x1e8]
mov eax, dword [eax + 0x48]
cmp eax, dword [ecx + 0x44]
jne 0x516e19
cmp byte [esi + 0x1e4], 0
je 0x516e19
cmp byte [edi + 0x1d1], 0
je 0x51728d
push dword [esi + 0x68]
push dword [edi + 0x68]
call fcn.00510c80
add esp, 8
test eax, eax
je 0x516e19
cmp byte [edi + 0x1d2], 0
je 0x5172a8
mov eax, dword [edi + 0x448]
cmp eax, dword [esi + 0x448]
jne 0x516e19
push dword [esi + 0x50]
push dword [edi + 0x50]
call fcn.00510c80
add esp, 8
test eax, eax
je 0x516e19
mov eax, dword [edi + 0x444]
cmp eax, dword [esi + 0x444]
jne 0x516e19
mov eax, dword [edi + 0x1e8]
test byte [eax + 0x4c], 1
je 0x5172fa
lea eax, [esi + 0x148]
push eax
lea eax, [edi + 0x148]
push eax
call fcn.00513fc0
add esp, 8
test al, al
je 0x516e19
cmp byte [esp + 0x12], 0
je 0x517349
push dword [esi + 0xe0]
push dword [edi + 0xe0]
call fcn.00510c20
add esp, 8
test eax, eax
jne 0x517331
push dword [esi + 0xe4]
push dword [edi + 0xe4]
call fcn.00510c20
add esp, 8
test eax, eax
je 0x517356
cmp dword [esi + 0x258], 0
jne 0x516e19
mov ebp, esi
mov dword [esp + 0x14], ebp
jmp 0x516e1d
cmp dword [esi + 0x258], 0
jne 0x516e19
mov al, byte [esp + 0x28]
test al, al
je 0x5173b2
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x516e19
cmp dword [esi + 0xac], 0
je 0x516e19
push eax
push dword [edi + 0xa8]
call fcn.00510c20
add esp, 8
test eax, eax
jne 0x516e19
push dword [esi + 0xac]
push dword [edi + 0xac]
call fcn.00510c20
add esp, 8
test eax, eax
jne 0x516e19
mov al, byte [esp + 0x28]
jmp 0x5173bf
cmp dword [esi + 0x25c], 0
jne 0x516e19
mov cl, byte [esp + 0x12]
test cl, cl
jne 0x5173cb
test al, al
je 0x51742c
mov ebp, esi
mov dword [esp + 0x14], ebp
test cl, cl
je 0x5173de
cmp dword [esi + 0x258], 0
jne 0x5173f3
test al, al
je 0x516e1d
cmp dword [esi + 0x25c], 0
je 0x516e1d
mov eax, dword [esp + 0x30]
mov byte [eax], 1
test ebp, ebp
je 0x51744d
push ebp
push ebx
call fcn.0051d8b0
add esp, 8
cmp dword [ebx + 0x84], 0
je 0x51741c
push 5
push ebx
call fcn.0051bec0
add esp, 8
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax], ebp
mov al, 1
pop ebp
pop ebx
add esp, 0x10
ret
cmp byte [esp + 0x24], 0
je 0x517449
test ebp, ebp
mov ebp, esi
je 0x5173fa
push str.Multiplexed_connection_found
push ebx
call fcn.00524050
add esp, 8
jmp 0x5173fa
mov ebp, esi
jmp 0x5173fa
cmp dword [ebx + 0x84], 0
je 0x517461
push 5
push ebx
call fcn.0051bec0
add esp, 8
cmp byte [esp + 0x13], 0
je 0x517486
cmp byte [ebx + 0x6eb], 0
je 0x517486
push str.Found_pending_candidate_for_reuse_and_CURLOPT_PIPEWAIT_is_set
push ebx
call fcn.00524050
mov eax, dword [esp + 0x3c]
add esp, 8
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret