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

Disassembly:
sub esp, 0x28
push ebx
push ebp
xor eax, eax
mov ebp, edx
push esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x2c8]
push edi
xor esi, esi
test byte [eax + 0x40], 3
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
je 0x513a35
mov eax, dword [ebp + 0x2a4]
test eax, 0x1000
je 0x513a18
test al, 1
jne 0x513a35
mov eax, dword [edi + 0x78]
test eax, eax
je 0x513a35
cmp dword [eax + 0x78], esi
je 0x513a35
cmp dword [edi + 0x82c], 3
jl 0x513a35
mov dword [esp + 0x14], 2
mov eax, dword [esp + 0x40]
mov edx, dword [edi + 0xc28]
mov dword [eax], esi
mov eax, dword [esp + 0x44]
mov ecx, ebp
mov dword [eax], esi
lea eax, [esp + 0x40]
push eax
call fcn.0051e340
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x513d14
cmp dword [ebx], 2
mov ecx, str.can_multiplex
je 0x513a73
mov ecx, str.serially
push ecx
push ebx
push dword [esp + 0x48]
push str.Found_bundle_for_host__s:__p___s__n
push edi
call fcn.0051a600
mov ecx, dword [esp + 0x28]
add esp, 0x14
test ecx, ecx
je 0x513b1e
cmp dword [ebx], esi
jne 0x513ae0
test dword [edi + 0xa84], 0x800
je 0x513acc
push str.Server_doesnt_support_multiplex_yet__wait_n
push edi
call fcn.0051a600
mov eax, dword [esp + 0x4c]
add esp, 8
mov ecx, edi
mov dword [eax], 1
call fcn.0051e5b0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push str.Server_doesnt_support_multiplex__yet__n
push edi
call fcn.0051a600
add esp, 8
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [ebx], 2
jne 0x513b05
mov eax, dword [edi + 0x78]
test eax, eax
je 0x513af1
cmp dword [eax + 0x78], esi
jne 0x513b05
push str.Could_multiplex__but_not_asked_to__n
push edi
call fcn.0051a600
add esp, 8
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [ebx], 0xffffffff
jne 0x513b1e
push str.Can_not_multiplex__even_if_we_wanted_to__n
push edi
call fcn.0051a600
add esp, 8
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x513d14
lea esp, [esp]
mov esi, dword [ebx]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x34], ebx
mov ebx, dword [esi + 0x2a4]
test ebx, 0x10000000
jne 0x513d04
mov edi, dword [esi + 0x328]
test edi, edi
je 0x513b65
mov eax, dword [esp + 0x2c]
cmp dword [eax], 2
jne 0x513b65
mov eax, 1
jmp 0x513b67
xor eax, eax
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x513b82
test ebx, 0x1000
je 0x513bc3
test bl, 1
jne 0x513d00
jmp 0x513bc3
test eax, eax
jne 0x513d00
cmp byte [esi + 0x5c], al
jne 0x513bad
push dword [esi + 0x48]
mov edi, dword [esp + 0x1c]
push str.Connection__ld_is_still_name_resolving__cant_reuse_n
push edi
call fcn.0051a600
mov ecx, dword [esp + 0x20]
add esp, 0xc
jmp 0x513d04
cmp dword [esi + 0x1b8], 0xffffffff
je 0x513fa6
test bl, 1
jne 0x513fb3
mov eax, dword [ebp + 0x2c8]
mov edx, dword [esi + 0x2c8]
mov ecx, dword [eax + 0x44]
mov eax, dword [edx + 0x44]
and ecx, 1
and eax, 1
mov dword [esp + 0x40], ecx
cmp ecx, eax
je 0x513c07
mov ecx, dword [edx + 0x40]
call fcn.00510a30
mov ecx, dword [ebp + 0x2c8]
cmp eax, dword [ecx + 0x40]
jne 0x513cfc
test byte [esi + 0x428], 1
je 0x513cfc
mov ecx, dword [ebp + 0x2a4]
mov edx, ecx
mov eax, ebx
shr edx, 5
shr eax, 5
and edx, 1
and eax, 1
mov dword [esp + 0x20], edx
cmp edx, eax
jne 0x513cfc
mov eax, ebx
shr ecx, 6
shr eax, 6
and ecx, 1
and eax, 1
cmp ecx, eax
jne 0x513cfc
test ecx, ecx
je 0x513c60
lea edx, [esi + 0xbc]
lea ecx, [ebp + 0xbc]
call fcn.00514320
test eax, eax
je 0x513cfc
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 0x2a4]
mov eax, ecx
shr eax, 2
and eax, 1
mov dword [esp + 0x24], eax
mov eax, ebx
shr eax, 2
and eax, 1
cmp dword [esp + 0x24], eax
jne 0x513cfc
mov eax, ebx
shr ecx, 3
shr eax, 3
and ecx, 1
and eax, 1
mov dword [esp + 0x30], ecx
cmp ecx, eax
jne 0x513cfc
test edx, edx
je 0x513d8b
lea edx, [esi + 0xdc]
lea ecx, [ebp + 0xdc]
call fcn.00514320
test eax, eax
je 0x513cfc
xor ebx, dword [ebp + 0x2a4]
test ebx, 0x4000
jne 0x513cfc
cmp dword [ebp + 0xf0], 2
mov ebx, dword [esp + 0x40]
jne 0x513d8f
test ebx, ebx
je 0x513d67
lea edx, [esi + 0x26c]
lea ecx, [ebp + 0x26c]
call fcn.0051be20
test eax, eax
je 0x513cfc
cmp dword [esi + 0x220], 2
je 0x513d8f
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x513b30
mov eax, dword [edi + 0x80]
test eax, eax
je 0x513d35
test byte [eax], 0x20
je 0x513d35
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x513d35
push dword [eax + 0x10]
push 5
push edi
call ecx
add esp, 0xc
test esi, esi
je 0x513d5d
test dword [edi + 0xa84], 0x800
je 0x513d5d
push str.Found_pending_candidate_for_reuse_and_CURLOPT_PIPEWAIT_is_set_n
push edi
call fcn.0051a600
mov eax, dword [esp + 0x4c]
add esp, 8
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea edx, [esi + 0x244]
lea ecx, [ebp + 0x244]
call fcn.0051be20
test eax, eax
je 0x513cfc
cmp dword [esi + 0x200], 2
jne 0x513cfc
jmp 0x513d8f
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x513d9f
cmp dword [esi], ecx
jne 0x513d00
test edi, edi
je 0x513db8
mov eax, dword [esi]
test eax, eax
je 0x513db8
mov ecx, dword [ebp]
mov eax, dword [eax + 0x78]
cmp eax, dword [ecx + 0x78]
jne 0x513cfc
mov ecx, dword [ebp + 0x410]
test ecx, ecx
jne 0x513dcb
cmp word [ebp + 0x414], cx
je 0x513e30
mov ax, word [esi + 0x414]
cmp ax, word [ebp + 0x414]
jne 0x513cfc
mov eax, dword [esi + 0x418]
cmp eax, dword [ebp + 0x418]
jne 0x513cfc
test ecx, ecx
je 0x513e30
mov eax, dword [esi + 0x410]
test eax, eax
je 0x513cfc
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x513e23
test dl, dl
je 0x513e1f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x513e23
add eax, 2
add ecx, 2
test dl, dl
jne 0x513e03
xor eax, eax
jmp 0x513e28
sbb eax, eax
or eax, 1
test eax, eax
jne 0x513cfc
mov eax, dword [ebp + 0x2c8]
test byte [eax + 0x44], 0x80
jne 0x513eb4
mov ecx, dword [esi + 0x170]
mov eax, dword [ebp + 0x170]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x513e68
test dl, dl
je 0x513e64
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x513e68
add eax, 2
add ecx, 2
test dl, dl
jne 0x513e48
xor eax, eax
jmp 0x513e6d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x513cfc
mov ecx, dword [esi + 0x174]
mov eax, dword [ebp + 0x174]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x513ea1
test dl, dl
je 0x513e9d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x513ea1
add eax, 2
add ecx, 2
test dl, dl
jne 0x513e81
xor eax, eax
jmp 0x513ea6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x513cfc
mov eax, dword [ebp + 0x2c8]
cmp dword [esp + 0x20], 0
je 0x513ecf
test ebx, ebx
jne 0x513ecf
test dword [ebp + 0x2a4], 0x4000
je 0x513fd1
mov edi, dword [esi + 0x2c8]
mov ecx, dword [eax]
mov edx, dword [edi]
call fcn.0052ad50
test eax, eax
jne 0x513f06
mov ecx, dword [edi + 0x40]
call fcn.00510a30
mov ecx, dword [ebp + 0x2c8]
cmp eax, dword [ecx + 0x40]
jne 0x513cfc
test byte [esi + 0x428], 1
je 0x513cfc
cmp dword [esp + 0x24], 0
je 0x513f26
mov edx, dword [esi + 0xb4]
mov ecx, dword [ebp + 0xb4]
call fcn.0052ad50
test eax, eax
je 0x513cfc
cmp dword [esp + 0x30], 0
je 0x513f3f
mov eax, dword [ebp + 0x104]
cmp eax, dword [esi + 0x104]
jne 0x513cfc
mov edx, dword [esi + 0x9c]
mov ecx, dword [ebp + 0x9c]
call fcn.0052ad50
test eax, eax
je 0x513cfc
mov eax, dword [ebp + 0x100]
cmp eax, dword [esi + 0x100]
jne 0x513cfc
test ebx, ebx
je 0x513fd1
lea edx, [esi + 0x244]
lea ecx, [ebp + 0x244]
call fcn.0051be20
test eax, eax
je 0x513cfc
cmp dword [esi + 0x200], 2
je 0x513fd1
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov esi, 1
mov dword [esp + 0x1c], esi
jmp 0x513d08
test bl, 1
jne 0x513fb3
mov dword [esp + 0x1c], 1
push dword [esi + 0x48]
mov edi, dword [esp + 0x1c]
push str.Connection__ld_isnt_open_enough__cant_reuse_n
push edi
call fcn.0051a600
mov ecx, dword [esp + 0x20]
add esp, 0xc
jmp 0x513d04
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
test eax, eax
je 0x513ff2
cmp dword [esp + 0x28], 0
je 0x513ff2
push str.Multiplexed_connection_found__n
push edi
call fcn.0051a600
add esp, 8
mov dword [esi], edi
mov eax, dword [edi + 0x80]
test eax, eax
je 0x514015
test byte [eax], 0x20
je 0x514015
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x514015
push dword [eax + 0x10]
push 5
push edi
call ecx
add esp, 0xc
mov eax, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret