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

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x12], 0
mov eax, dword [edi + 0x560]
test byte [eax + 0x40], 3
je 0x519738
cmp byte [edi + 0x51f], 0
je 0x519714
cmp byte [edi + 0x515], 0
jne 0x519738
mov ebx, dword [esp + 0x2c]
push dword [ebx + 0x78]
call fcn.0050efa0
add esp, 4
test al, al
je 0x51973c
cmp dword [ebx + 0x83c], 3
mov eax, 2
cmovge esi, eax
jmp 0x51973c
mov ebx, dword [esp + 0x2c]
test esi, esi
setne al
test byte [ebx + 0xdc0], 0x28
mov byte [esp + 0x30], al
je 0x51975e
mov eax, dword [edi + 0x560]
test byte [eax + 0x40], 3
je 0x51975e
mov al, 1
jmp 0x519760
xor al, al
cmp byte [edi + 0x512], 0
mov byte [esp + 0x13], al
je 0x519789
test byte [ebx + 0xdd0], 0x28
je 0x519789
mov eax, dword [edi + 0x560]
test byte [eax + 0x40], 3
je 0x519789
mov byte [esp + 0x11], 1
jmp 0x51978f
xor al, al
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x38]
mov byte [eax], 0
mov eax, dword [esp + 0x3c]
mov byte [eax], 0
lea eax, [esp + 0x24]
push eax
push dword [ebx + 0xd00]
push edi
call fcn.005176b0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x519eee
cmp dword [ebp], 2
mov eax, str.serially
mov ecx, str.can_multiplex
cmovne ecx, eax
push ecx
push ebp
push dword [esp + 0x2c]
push str.Found_bundle_for_host__s:__p___s__n
push ebx
call fcn.0051ef30
add esp, 0x14
test esi, esi
je 0x51988b
cmp dword [ebp], 0
jne 0x519846
cmp byte [ebx + 0xb55], 0
je 0x519832
push str.Server_doesnt_support_multiplex_yet__wait_n
push ebx
call fcn.0051ef30
mov eax, dword [esp + 0x44]
add esp, 8
mov byte [eax], 1
cmp dword [ebx + 0x80], 0
je 0x519f27
push 5
push ebx
call fcn.00522b50
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push str.Server_doesnt_support_multiplex__yet__n
push ebx
call fcn.0051ef30
add esp, 8
xor al, al
mov byte [esp + 0x30], al
cmp dword [ebp], 2
jne 0x51986f
push dword [ebx + 0x78]
call fcn.0050efa0
add esp, 4
test al, al
jne 0x51986f
push str.Could_multiplex__but_not_asked_to__n
push ebx
call fcn.0051ef30
add esp, 8
xor al, al
mov byte [esp + 0x30], al
cmp dword [ebp], 0xffffffff
jne 0x51988b
push str.Can_not_multiplex__even_if_we_wanted_to__n
push ebx
call fcn.0051ef30
add esp, 8
xor dl, dl
mov byte [esp + 0x30], dl
jmp 0x51988f
mov dl, byte [esp + 0x30]
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x519eee
nop
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov esi, dword [esi]
mov dword [esp + 0x20], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x1c], ecx
cmp byte [esi + 0x52c], al
jne 0x519e6f
cmp byte [esi + 0x515], al
jne 0x519e6f
cmp dword [ebp], 2
jne 0x5198db
mov eax, dword [esi + 0x5cc]
mov dword [esp + 0x20], eax
test dl, dl
jne 0x51992f
test eax, eax
jne 0x519e6f
cmp byte [esi + 0x2c4], al
jne 0x519908
push dword [esi + 0x2b0]
push str.Connection__ld_is_still_name_resolving__cant_reuse_n
push ebx
call fcn.0051ef30
add esp, 0xc
jmp 0x519e6b
cmp dword [esi + 0x420], 0xffffffff
jne 0x51992f
push dword [esi + 0x2b0]
mov byte [esp + 0x16], 1
push str.Connection__ld_isnt_open_enough__cant_reuse_n
push ebx
call fcn.0051ef30
add esp, 0xc
jmp 0x519e6b
mov eax, dword [edi + 0x7e8]
test eax, eax
je 0x519988
mov ecx, dword [esi + 0x7e8]
test ecx, ecx
je 0x519e6f
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x519967
test dl, dl
je 0x519963
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x519967
add eax, 2
add ecx, 2
test dl, dl
jne 0x519947
xor eax, eax
jmp 0x51996c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x519e6b
mov al, byte [edi + 0x52e]
cmp al, byte [esi + 0x52e]
jne 0x519e6b
jmp 0x519995
cmp dword [esi + 0x7e8], 0
jne 0x519e6f
mov ecx, dword [esi + 0x560]
mov edx, dword [edi + 0x560]
mov eax, dword [ecx + 0x44]
xor eax, dword [edx + 0x44]
test al, 1
je 0x5199cc
push dword [ecx + 0x40]
call fcn.0051c450
add esp, 4
cmp eax, dword [edx + 0x40]
jne 0x519e6b
cmp byte [esi + 0x52f], 0
je 0x519e6b
mov al, byte [edi + 0x510]
cmp al, byte [esi + 0x510]
jne 0x519e6b
mov al, byte [edi + 0x511]
cmp al, byte [esi + 0x511]
jne 0x519e6b
test al, al
je 0x519a12
lea eax, [esi + 0x324]
push eax
lea eax, [edi + 0x324]
push eax
call fcn.0051dd60
add esp, 8
test al, al
je 0x519e6b
mov al, byte [edi + 0x518]
cmp al, byte [esi + 0x518]
jne 0x519e6b
mov al, byte [edi + 0x519]
cmp al, byte [esi + 0x519]
jne 0x519e6b
cmp byte [edi + 0x510], 0
je 0x519ada
lea eax, [esi + 0x344]
push eax
lea eax, [edi + 0x344]
push eax
call fcn.0051d4d0
add esp, 8
test al, al
je 0x519e6b
mov al, byte [edi + 0x513]
cmp al, byte [esi + 0x513]
jne 0x519e6b
cmp dword [edi + 0x358], 2
jne 0x519ada
mov eax, dword [edi + 0x560]
test byte [eax + 0x44], 1
je 0x519aaf
lea eax, [esi + 0x4dc]
push eax
lea eax, [edi + 0x4dc]
push eax
call fcn.00518940
add esp, 8
test al, al
je 0x519e6b
cmp dword [esi + 0x488], 2
jmp 0x519ad4
lea eax, [esi + 0x4ac]
push eax
lea eax, [edi + 0x4ac]
push eax
call fcn.00518940
add esp, 8
test al, al
je 0x519e6b
cmp dword [esi + 0x468], 2
jne 0x519e6b
mov dl, byte [esp + 0x30]
test dl, dl
jne 0x519ae7
cmp dword [esi], 0
jmp 0x519af5
mov eax, dword [esi]
test eax, eax
je 0x519afb
mov ecx, dword [edi]
mov eax, dword [eax + 0x78]
cmp eax, dword [ecx + 0x78]
jne 0x519e6f
mov ecx, dword [edi + 0x7cc]
test ecx, ecx
jne 0x519b0e
cmp word [edi + 0x7d0], cx
je 0x519b73
mov ax, word [esi + 0x7d0]
cmp ax, word [edi + 0x7d0]
jne 0x519e6f
mov eax, dword [esi + 0x7d4]
cmp eax, dword [edi + 0x7d4]
jne 0x519e6f
test ecx, ecx
je 0x519b73
mov eax, dword [esi + 0x7cc]
test eax, eax
je 0x519e6f
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x519b66
test dl, dl
je 0x519b62
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x519b66
add eax, 2
add ecx, 2
test dl, dl
jne 0x519b46
xor eax, eax
jmp 0x519b6b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x519e6b
mov ebp, dword [edi + 0x560]
mov ebx, dword [ebp + 0x44]
test bl, bl
js 0x519bfd
mov ecx, dword [esi + 0x3d8]
mov eax, dword [edi + 0x3d8]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x519bb0
test dl, dl
je 0x519bac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x519bb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x519b90
xor eax, eax
jmp 0x519bb5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x519e63
mov ecx, dword [esi + 0x3dc]
mov eax, dword [edi + 0x3dc]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x519bf0
test dl, dl
je 0x519bec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x519bf0
add eax, 2
add ecx, 2
test dl, dl
jne 0x519bd0
xor eax, eax
jmp 0x519bf5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x519e63
test bl, 1
jne 0x519c18
cmp byte [edi + 0x510], 0
je 0x519c18
cmp byte [edi + 0x513], 0
je 0x519d07
mov eax, dword [esi + 0x560]
push dword [eax]
push dword [ebp]
call fcn.00521c30
add esp, 8
test eax, eax
jne 0x519c5c
mov eax, dword [esi + 0x560]
push dword [eax + 0x40]
call fcn.0051c450
mov ecx, dword [edi + 0x560]
add esp, 4
cmp eax, dword [ecx + 0x40]
jne 0x519e63
cmp byte [esi + 0x52f], 0
je 0x519e63
cmp byte [edi + 0x518], 0
je 0x519c81
push dword [esi + 0x31c]
push dword [edi + 0x31c]
call fcn.00521c30
add esp, 8
test eax, eax
je 0x519e63
cmp byte [edi + 0x519], 0
je 0x519c9c
mov eax, dword [edi + 0x36c]
cmp eax, dword [esi + 0x36c]
jne 0x519e63
push dword [esi + 0x304]
push dword [edi + 0x304]
call fcn.00521c30
add esp, 8
test eax, eax
je 0x519e63
mov eax, dword [edi + 0x368]
cmp eax, dword [esi + 0x368]
jne 0x519e63
mov eax, dword [edi + 0x560]
test byte [eax + 0x44], 1
je 0x519d07
lea eax, [esi + 0x4ac]
push eax
lea eax, [edi + 0x4ac]
push eax
call fcn.00518940
add esp, 8
test al, al
je 0x519e63
cmp dword [esi + 0x468], 2
je 0x519d07
mov byte [esp + 0x12], 1
jmp 0x519e63
mov bh, byte [esp + 0x13]
test bh, bh
je 0x519da0
mov ecx, dword [esi + 0x3d8]
mov eax, dword [edi + 0x3d8]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x519d40
test dl, dl
je 0x519d3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x519d40
add eax, 2
add ecx, 2
test dl, dl
jne 0x519d20
xor eax, eax
jmp 0x519d45
sbb eax, eax
or eax, 1
test eax, eax
jne 0x519d7e
mov ecx, dword [esi + 0x3dc]
mov eax, dword [edi + 0x3dc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x519d75
test dl, dl
je 0x519d71
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x519d75
add eax, 2
add ecx, 2
test dl, dl
jne 0x519d55
xor eax, eax
jmp 0x519d7a
sbb eax, eax
or eax, 1
test eax, eax
je 0x519dad
cmp dword [esi + 0x5dc], 0
mov ebx, dword [esp + 0x2c]
mov dl, byte [esp + 0x30]
mov ebp, dword [esp + 0x14]
jne 0x519e6f
mov dword [esp + 0x18], esi
jmp 0x519e6f
cmp dword [esi + 0x5dc], 0
jne 0x519e63
mov al, byte [esp + 0x11]
test al, al
je 0x519e7d
mov eax, dword [esi + 0x35c]
test eax, eax
je 0x519e63
mov edx, dword [esi + 0x360]
test edx, edx
je 0x519e63
mov ecx, dword [edi + 0x35c]
nop dword [eax + eax]
mov bl, byte [ecx]
cmp bl, byte [eax]
jne 0x519e00
test bl, bl
je 0x519dfc
mov bl, byte [ecx + 1]
cmp bl, byte [eax + 1]
jne 0x519e00
add ecx, 2
add eax, 2
test bl, bl
jne 0x519de0
xor eax, eax
jmp 0x519e05
sbb eax, eax
or eax, 1
test eax, eax
jne 0x519e63
mov eax, dword [edi + 0x360]
nop
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x519e30
test cl, cl
je 0x519e2c
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x519e30
add eax, 2
add edx, 2
test cl, cl
jne 0x519e10
xor eax, eax
jmp 0x519e35
sbb eax, eax
or eax, 1
test eax, eax
jne 0x519e63
mov al, byte [esp + 0x11]
test bh, bh
jne 0x519e45
test al, al
je 0x519e88
mov dword [esp + 0x18], esi
test bh, bh
je 0x519e56
cmp dword [esi + 0x5dc], 0
jne 0x519eab
test al, al
je 0x519e63
cmp dword [esi + 0x5e0], 0
jne 0x519eab
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov dl, byte [esp + 0x30]
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x5198a0
jmp 0x519eb6
cmp dword [esi + 0x5e0], 0
jne 0x519e63
jmp 0x519e3d
mov al, byte [esp + 0x30]
mov ebx, dword [esp + 0x2c]
test al, al
je 0x519eba
cmp dword [esp + 0x20], 0
je 0x519eba
push str.Multiplexed_connection_found__n
push ebx
call fcn.0051ef30
add esp, 8
jmp 0x519eba
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
mov byte [eax], 1
mov esi, dword [esp + 0x18]
test esi, esi
je 0x519eee
push esi
push ebx
mov dword [esi], ebx
call fcn.0050e5d0
add esp, 8
cmp dword [ebx + 0x80], 0
je 0x519ede
push 5
push ebx
call fcn.00522b50
add esp, 8
mov eax, dword [esp + 0x34]
pop edi
mov dword [eax], esi
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp dword [ebx + 0x80], 0
je 0x519f02
push 5
push ebx
call fcn.00522b50
add esp, 8
cmp byte [esp + 0x12], 0
je 0x519f27
cmp byte [ebx + 0xb55], 0
je 0x519f27
push str.Found_pending_candidate_for_reuse_and_CURLOPT_PIPEWAIT_is_set_n
push ebx
call fcn.0051ef30
mov eax, dword [esp + 0x44]
add esp, 8
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret