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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov edi, edx
mov esi, ecx
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 0x44], eax
call fcn.0051eb20
mov ebp, eax
test byte [esi + 0x9a8], 0x28
je 0x51cff9
mov eax, dword [edi + 0x2a0]
test byte [eax + 0x44], 3
setne al
mov dword [esp + 0x1c], eax
jmp 0x51d001
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
cmp byte [edi + 0x25a], 0
je 0x51d02e
test byte [esi + 0x9b8], 0x28
je 0x51d02e
mov eax, dword [edi + 0x2a0]
test byte [eax + 0x44], 3
setne al
mov dword [esp + 0x14], eax
jmp 0x51d036
mov dword [esp + 0x14], 0
mov byte [ecx], 0
mov byte [ebx], 0
lea eax, [esp + 0x40]
push eax
push dword [esi + 0x8e0]
push edi
push esi
call fcn.0052a600
add esp, 0x10
test eax, eax
je 0x51d0c6
mov dword [esp], edi
cmp dword [eax], 2
mov edi, eax
mov eax, str.can_multiplex
mov ecx, str.serially
cmove ecx, eax
push ecx
push edi
push dword [esp + 0x48]
push str.Found_bundle_for_host__s:__p___s_
push esi
call fcn.0051ec50
add esp, 0x14
test ebp, ebp
mov dword [esp + 0x20], edi
je 0x51d147
mov eax, dword [edi]
mov cl, 1
mov dword [esp + 0xc], ecx
test eax, eax
je 0x51d0d3
cmp eax, 2
jne 0x51d12c
push dword [esi + 0x70]
call fcn.005204d0
add esp, 4
test al, al
jne 0x51d12c
push str.Could_multiplex__but_not_asked_to_
push esi
call fcn.0051ec50
add esp, 8
mov dword [esp + 0xc], 0
jmp 0x51d12c
mov dword [esp + 0x18], 0
jmp 0x51d7d4
cmp byte [esi + 0x735], 0
je 0x51d107
push str.Server_doesnt_support_multiplex_yet__wait
push esi
call fcn.0051ec50
add esp, 8
mov byte [ebx], 1
cmp dword [esi + 0x78], 0
je 0x51d806
push 5
push esi
call fcn.0052af60
add esp, 8
jmp 0x51d806
push str.Server_doesnt_support_multiplex__yet_
push esi
call fcn.0051ec50
add esp, 8
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [esp + 0xc], 0
cmp eax, 2
je 0x51d09f
mov edi, dword [esp + 0x20]
cmp dword [edi], 0xffffffff
jne 0x51d14f
push str.Can_not_multiplex__even_if_we_wanted_to_
push esi
call fcn.0051ec50
mov edi, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0xc], 0
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x51d7c8
mov dword [esp + 0x10], 0
mov ecx, dword [esp]
lea eax, [ecx + 0x84]
mov dword [esp + 0x38], eax
lea eax, [ecx + 0xa4]
mov dword [esp + 0x34], eax
lea eax, [ecx + 0x214]
mov dword [esp + 0x30], eax
lea eax, [ecx + 0x1d4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
or al, byte [esp + 0x14]
mov byte [esp + 0xb], al
mov dword [esp + 0x18], 0
jmp 0x51d1b8
push 1
push ebp
push esi
call fcn.0051aa30
add esp, 0xc
nop
test ebx, ebx
je 0x51d795
mov ebp, dword [ebx]
mov ebx, dword [ebx + 8]
cmp byte [ebp + 0x275], 0
jne 0x51d1b0
cmp byte [ebp + 0x25d], 0
jne 0x51d1b0
mov ecx, ebp
mov edx, esi
call fcn.0051e940
test al, al
jne 0x51d1a3
movzx eax, byte [esi + 0x4f8]
test al, al
je 0x51d1ef
cmp al, byte [ebp + 0x100]
jne 0x51d1b0
mov eax, dword [esp + 0x20]
cmp dword [eax], 2
jne 0x51d209
mov eax, dword [ebp + 0x300]
cmp byte [esp + 0xc], 0
je 0x51d219
xor edx, edx
jmp 0x51d23b
xor edx, edx
mov eax, 0
cmp byte [esp + 0xc], 0
jne 0x51d23b
jmp 0x51d21d
test eax, eax
jne 0x51d1b0
cmp byte [ebp + 0xd2], 0
je 0x51d3f7
cmp dword [ebp + 0x148], 0xffffffff
je 0x51d40a
xor eax, eax
mov dl, 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x4e8]
mov ecx, dword [ebp + 0x4e8]
test eax, eax
je 0x51d28c
test ecx, ecx
je 0x51d1b0
mov edi, dword [esp]
mov dword [esp + 4], edx
push ecx
push eax
call fcn.005fee30
add esp, 8
test eax, eax
jne 0x51d1b0
movzx eax, byte [edi + 0x277]
cmp al, byte [ebp + 0x277]
mov edx, dword [esp + 4]
jne 0x51d1b0
jmp 0x51d294
test ecx, ecx
jne 0x51d1b0
mov edi, edx
mov eax, dword [esp]
mov edx, dword [eax + 0x2a0]
mov ecx, dword [ebp + 0x2a0]
mov eax, dword [ecx + 0x4c]
mov dword [esp + 0x24], edx
xor eax, dword [edx + 0x4c]
mov edx, edi
test al, 1
je 0x51d2dc
mov dword [esp + 4], edx
call fcn.0045bee0
mov ecx, dword [esp + 0x24]
cmp eax, dword [ecx + 0x44]
jne 0x51d1b0
cmp byte [ebp + 0x278], 0
mov edx, dword [esp + 4]
je 0x51d1b0
mov eax, dword [esp]
movzx eax, byte [eax + 0x258]
cmp al, byte [ebp + 0x258]
jne 0x51d1b0
mov eax, dword [esp]
movzx eax, byte [eax + 0x259]
cmp al, byte [ebp + 0x259]
jne 0x51d1b0
test al, al
je 0x51d327
mov edi, edx
lea edx, [ebp + 0x84]
mov ecx, dword [esp + 0x38]
call fcn.0051eb70
mov edx, edi
test al, al
je 0x51d1b0
mov eax, dword [esp]
movzx eax, byte [eax + 0x260]
cmp al, byte [ebp + 0x260]
jne 0x51d1b0
mov eax, dword [esp]
movzx eax, byte [eax + 0x261]
cmp al, byte [ebp + 0x261]
jne 0x51d1b0
mov eax, dword [esp]
cmp byte [eax + 0x258], 0
je 0x51d3e3
mov dword [esp + 4], edx
lea edx, [ebp + 0xa4]
mov ecx, dword [esp + 0x34]
call fcn.0051ebe0
test al, al
je 0x51d1b0
mov eax, dword [esp]
movzx eax, byte [eax + 0x25b]
cmp al, byte [ebp + 0x25b]
jne 0x51d1b0
mov eax, dword [esp]
cmp dword [eax + 0xb8], 2
mov edx, dword [esp + 4]
jne 0x51d3e3
mov eax, dword [esp]
mov eax, dword [eax + 0x2a0]
test byte [eax + 0x4c], 1
jne 0x51d657
lea eax, [ebp + 0x1d4]
push eax
push dword [esp + 0x2c]
call fcn.00517e90
add esp, 8
test al, al
je 0x51d1b0
cmp dword [ebp + 0x190], 2
mov edx, dword [esp + 4]
jne 0x51d1b0
mov eax, dword [ebp + 0x300]
test dl, dl
je 0x51d426
test eax, eax
jne 0x51d1b0
jmp 0x51d43e
push dword [ebp + 0x40]
push str.Connection__ld_is_still_name_resolving__cant_reuse
push esi
call fcn.0051ec50
jmp 0x51d1ac
push dword [ebp + 0x40]
push str.Connection__ld_isnt_open_enough__cant_reuse
push esi
call fcn.0051ec50
add esp, 0xc
mov al, 1
mov dword [esp + 0x18], eax
jmp 0x51d1b0
test eax, eax
je 0x51d43e
mov eax, dword [ebp + 0x2f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x70]
cmp eax, dword [esi + 0x70]
jne 0x51d1b0
mov ecx, dword [esp]
mov eax, dword [ecx + 0x4ec]
movzx ecx, word [ecx + 0x504]
test eax, eax
jne 0x51d600
test cx, cx
jne 0x51d600
mov eax, dword [esp]
mov ecx, dword [eax + 0x2a0]
mov eax, dword [ecx + 0x4c]
test al, al
mov dword [esp + 4], edx
js 0x51d4c3
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
push dword [ebp + 0x104]
mov eax, dword [esp + 4]
push dword [eax + 0x104]
call fcn.005fee30
add esp, 8
test eax, eax
jne 0x51d1b0
push dword [ebp + 0x108]
mov eax, dword [esp + 4]
push dword [eax + 0x108]
call fcn.005fee30
add esp, 8
test eax, eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
jne 0x51d1b0
test byte [ecx + 0x44], 3
je 0x51d4df
cmp byte [ebp + 0x114], 0x14
jb 0x51d4df
cmp byte [esi + 0xc3c], 3
jb 0x51d1b0
test al, 1
jne 0x51d4ff
mov eax, dword [esp]
cmp byte [eax + 0x258], 0
je 0x51d4ff
mov eax, dword [esp]
cmp byte [eax + 0x25b], 0
je 0x51d5a2
mov eax, dword [ebp + 0x2a0]
push dword [eax]
push dword [ecx]
call fcn.0052afc0
add esp, 8
test eax, eax
je 0x51d684
mov eax, dword [esp]
cmp byte [eax + 0x260], 0
je 0x51d53f
push dword [ebp + 0x7c]
mov eax, dword [esp + 4]
push dword [eax + 0x7c]
call fcn.0052afc0
add esp, 8
test eax, eax
je 0x51d1b0
mov eax, dword [esp]
cmp byte [eax + 0x261], 0
je 0x51d560
mov eax, dword [esp]
mov eax, dword [eax + 0xcc]
cmp eax, dword [ebp + 0xcc]
jne 0x51d1b0
push dword [ebp + 0x64]
mov eax, dword [esp + 4]
push dword [eax + 0x64]
call fcn.0052afc0
add esp, 8
test eax, eax
je 0x51d1b0
mov eax, dword [esp]
mov eax, dword [eax + 0xc8]
cmp eax, dword [ebp + 0xc8]
jne 0x51d1b0
mov eax, dword [esp]
mov eax, dword [eax + 0x2a0]
test byte [eax + 0x4c], 1
jne 0x51d71f
cmp byte [esp + 0x1c], 0
je 0x51d6b3
push dword [ebp + 0x104]
mov eax, dword [esp + 4]
push dword [eax + 0x104]
call fcn.005fee30
add esp, 8
test eax, eax
jne 0x51d5e9
push dword [ebp + 0x108]
mov eax, dword [esp + 4]
push dword [eax + 0x108]
call fcn.005fee30
add esp, 8
test eax, eax
je 0x51d6c0
cmp dword [ebp + 0x310], 0
mov eax, dword [esp + 0x10]
cmove eax, ebp
mov dword [esp + 0x10], eax
jmp 0x51d1b0
cmp word [ebp + 0x504], cx
jne 0x51d1b0
mov ecx, dword [ebp + 0x4f0]
mov edi, dword [esp]
cmp ecx, dword [edi + 0x4f0]
jne 0x51d1b0
test eax, eax
je 0x51d45f
mov dword [esp + 4], edx
mov ecx, dword [ebp + 0x4ec]
test ecx, ecx
je 0x51d1b0
push eax
push ecx
call fcn.005fee30
add esp, 8
test eax, eax
mov edx, dword [esp + 4]
jne 0x51d1b0
jmp 0x51d45f
lea eax, [ebp + 0x214]
push eax
push dword [esp + 0x34]
call fcn.00517e90
add esp, 8
test al, al
je 0x51d1b0
cmp dword [ebp + 0x1b0], 2
jne 0x51d1b0
jmp 0x51d3b7
mov ecx, dword [ebp + 0x2a0]
call fcn.0045bee0
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x2a0]
cmp eax, dword [ecx + 0x44]
jne 0x51d1b0
cmp byte [ebp + 0x278], 0
jne 0x51d519
jmp 0x51d1b0
cmp dword [ebp + 0x310], 0
jne 0x51d1b0
cmp byte [esp + 0x14], 0
je 0x51d74c
mov eax, dword [ebp + 0xbc]
test eax, eax
je 0x51d1b0
mov edi, dword [ebp + 0xc0]
test edi, edi
je 0x51d1b0
push eax
mov eax, dword [esp + 4]
push dword [eax + 0xbc]
call fcn.005fee30
add esp, 8
test eax, eax
jne 0x51d1b0
push edi
mov eax, dword [esp + 4]
push dword [eax + 0xc0]
call fcn.005fee30
add esp, 8
test eax, eax
jne 0x51d1b0
jmp 0x51d764
lea eax, [ebp + 0x1d4]
push eax
push dword [esp + 0x2c]
call fcn.00517e90
add esp, 8
test al, al
je 0x51d1b0
cmp dword [ebp + 0x190], 2
jne 0x51d41b
jmp 0x51d5a2
cmp dword [ebp + 0x314], 0
jne 0x51d1b0
cmp byte [esp + 0xb], 0
je 0x51d829
cmp byte [esp + 0x1c], 0
je 0x51d778
cmp dword [ebp + 0x310], 0
jne 0x51d81d
cmp byte [esp + 0x14], 0
je 0x51d78c
cmp dword [ebp + 0x314], 0
jne 0x51d81d
mov dword [esp + 0x10], ebp
jmp 0x51d1b0
mov eax, dword [esp + 0x10]
mov ebp, eax
test eax, eax
mov ebx, dword [esp + 0x64]
je 0x51d7d4
push ebp
push esi
call fcn.005204f0
add esp, 8
cmp dword [esi + 0x78], 0
je 0x51d7be
push 5
push esi
call fcn.0052af60
add esp, 8
mov eax, dword [esp + 0x5c]
mov dword [eax], ebp
mov bl, 1
jmp 0x51d808
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x64]
cmp dword [esi + 0x78], 0
je 0x51d7e5
push 5
push esi
call fcn.0052af60
add esp, 8
test byte [esp + 0x18], 1
je 0x51d806
cmp byte [esi + 0x735], 0
je 0x51d806
push str.Found_pending_candidate_for_reuse_and_CURLOPT_PIPEWAIT_is_set
push esi
call fcn.0051ec50
add esp, 8
mov byte [ebx], 1
xor ebx, ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005db451
mov eax, ebx
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x60]
mov byte [eax], 1
jmp 0x51d7a3
cmp dword [esp + 0x3c], 0
sete al
mov ecx, dword [esp + 4]
or cl, al
jne 0x51d7a3
push str.Multiplexed_connection_found_
push esi
call fcn.0051ec50
add esp, 8
jmp 0x51d7a3