Function at 0x505050
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 0x5050a8
cmp byte [edi + 0x51f], 0
je 0x505084
cmp byte [edi + 0x515], 0
jne 0x5050a8
mov ebx, dword [esp + 0x2c]
push dword [ebx + 0x78]
call fcn.004fba10
add esp, 4
test al, al
je 0x5050ac
cmp dword [ebx + 0x83c], 3
mov eax, 2
cmovge esi, eax
jmp 0x5050ac
mov ebx, dword [esp + 0x2c]
test esi, esi
setne al
test byte [ebx + 0xdc0], 0x28
mov byte [esp + 0x30], al
je 0x5050ce
mov eax, dword [edi + 0x560]
test byte [eax + 0x40], 3
je 0x5050ce
mov al, 1
jmp 0x5050d0
xor al, al
cmp byte [edi + 0x512], 0
mov byte [esp + 0x13], al
je 0x5050f9
test byte [ebx + 0xdd0], 0x28
je 0x5050f9
mov eax, dword [edi + 0x560]
test byte [eax + 0x40], 3
je 0x5050f9
mov byte [esp + 0x11], 1
jmp 0x5050ff
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.00503460
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x50585e
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.0050a640
add esp, 0x14
test esi, esi
je 0x5051fb
cmp dword [ebp], 0
jne 0x5051b6
cmp byte [ebx + 0xb55], 0
je 0x5051a2
push str.Server_doesnt_support_multiplex_yet__wait_n
push ebx
call fcn.0050a640
mov eax, dword [esp + 0x44]
add esp, 8
mov byte [eax], 1
cmp dword [ebx + 0x80], 0
je 0x505897
push 5
push ebx
call fcn.0050dff0
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.0050a640
add esp, 8
xor al, al
mov byte [esp + 0x30], al
cmp dword [ebp], 2
jne 0x5051df
push dword [ebx + 0x78]
call fcn.004fba10
add esp, 4
test al, al
jne 0x5051df
push str.Could_multiplex__but_not_asked_to__n
push ebx
call fcn.0050a640
add esp, 8
xor al, al
mov byte [esp + 0x30], al
cmp dword [ebp], 0xffffffff
jne 0x5051fb
push str.Can_not_multiplex__even_if_we_wanted_to__n
push ebx
call fcn.0050a640
add esp, 8
xor dl, dl
mov byte [esp + 0x30], dl
jmp 0x5051ff
mov dl, byte [esp + 0x30]
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x50585e
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 0x5057df
cmp byte [esi + 0x515], al
jne 0x5057df
cmp dword [ebp], 2
jne 0x50524b
mov eax, dword [esi + 0x5cc]
mov dword [esp + 0x20], eax
test dl, dl
jne 0x50529f
test eax, eax
jne 0x5057df
cmp byte [esi + 0x2c4], al
jne 0x505278
push dword [esi + 0x2b0]
push str.Connection__ld_is_still_name_resolving__cant_reuse_n
push ebx
call fcn.0050a640
add esp, 0xc
jmp 0x5057db
cmp dword [esi + 0x420], 0xffffffff
jne 0x50529f
push dword [esi + 0x2b0]
mov byte [esp + 0x16], 1
push str.Connection__ld_isnt_open_enough__cant_reuse_n
push ebx
call fcn.0050a640
add esp, 0xc
jmp 0x5057db
mov eax, dword [edi + 0x7e8]
test eax, eax
je 0x5052f8
mov ecx, dword [esi + 0x7e8]
test ecx, ecx
je 0x5057df
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5052d7
test dl, dl
je 0x5052d3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5052d7
add eax, 2
add ecx, 2
test dl, dl
jne 0x5052b7
xor eax, eax
jmp 0x5052dc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5057db
mov al, byte [edi + 0x52e]
cmp al, byte [esi + 0x52e]
jne 0x5057db
jmp 0x505305
cmp dword [esi + 0x7e8], 0
jne 0x5057df
mov ecx, dword [esi + 0x560]
mov edx, dword [edi + 0x560]
mov eax, dword [ecx + 0x44]
xor eax, dword [edx + 0x44]
test al, 1
je 0x50533c
push dword [ecx + 0x40]
call fcn.00507cf0
add esp, 4
cmp eax, dword [edx + 0x40]
jne 0x5057db
cmp byte [esi + 0x52f], 0
je 0x5057db
mov al, byte [edi + 0x510]
cmp al, byte [esi + 0x510]
jne 0x5057db
mov al, byte [edi + 0x511]
cmp al, byte [esi + 0x511]
jne 0x5057db
test al, al
je 0x505382
lea eax, [esi + 0x324]
push eax
lea eax, [edi + 0x324]
push eax
call fcn.005094a0
add esp, 8
test al, al
je 0x5057db
mov al, byte [edi + 0x518]
cmp al, byte [esi + 0x518]
jne 0x5057db
mov al, byte [edi + 0x519]
cmp al, byte [esi + 0x519]
jne 0x5057db
cmp byte [edi + 0x510], 0
je 0x50544a
lea eax, [esi + 0x344]
push eax
lea eax, [edi + 0x344]
push eax
call fcn.00508c00
add esp, 8
test al, al
je 0x5057db
mov al, byte [edi + 0x513]
cmp al, byte [esi + 0x513]
jne 0x5057db
cmp dword [edi + 0x358], 2
jne 0x50544a
mov eax, dword [edi + 0x560]
test byte [eax + 0x44], 1
je 0x50541f
lea eax, [esi + 0x4dc]
push eax
lea eax, [edi + 0x4dc]
push eax
call fcn.00504560
add esp, 8
test al, al
je 0x5057db
cmp dword [esi + 0x488], 2
jmp 0x505444
lea eax, [esi + 0x4ac]
push eax
lea eax, [edi + 0x4ac]
push eax
call fcn.00504560
add esp, 8
test al, al
je 0x5057db
cmp dword [esi + 0x468], 2
jne 0x5057db
mov dl, byte [esp + 0x30]
test dl, dl
jne 0x505457
cmp dword [esi], 0
jmp 0x505465
mov eax, dword [esi]
test eax, eax
je 0x50546b
mov ecx, dword [edi]
mov eax, dword [eax + 0x78]
cmp eax, dword [ecx + 0x78]
jne 0x5057df
mov ecx, dword [edi + 0x7cc]
test ecx, ecx
jne 0x50547e
cmp word [edi + 0x7d0], cx
je 0x5054e3
mov ax, word [esi + 0x7d0]
cmp ax, word [edi + 0x7d0]
jne 0x5057df
mov eax, dword [esi + 0x7d4]
cmp eax, dword [edi + 0x7d4]
jne 0x5057df
test ecx, ecx
je 0x5054e3
mov eax, dword [esi + 0x7cc]
test eax, eax
je 0x5057df
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5054d6
test dl, dl
je 0x5054d2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5054d6
add eax, 2
add ecx, 2
test dl, dl
jne 0x5054b6
xor eax, eax
jmp 0x5054db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5057db
mov ebp, dword [edi + 0x560]
mov ebx, dword [ebp + 0x44]
test bl, bl
js 0x50556d
mov ecx, dword [esi + 0x3d8]
mov eax, dword [edi + 0x3d8]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x505520
test dl, dl
je 0x50551c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x505520
add eax, 2
add ecx, 2
test dl, dl
jne 0x505500
xor eax, eax
jmp 0x505525
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5057d3
mov ecx, dword [esi + 0x3dc]
mov eax, dword [edi + 0x3dc]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x505560
test dl, dl
je 0x50555c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x505560
add eax, 2
add ecx, 2
test dl, dl
jne 0x505540
xor eax, eax
jmp 0x505565
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5057d3
test bl, 1
jne 0x505588
cmp byte [edi + 0x510], 0
je 0x505588
cmp byte [edi + 0x513], 0
je 0x505677
mov eax, dword [esi + 0x560]
push dword [eax]
push dword [ebp]
call fcn.0050d220
add esp, 8
test eax, eax
jne 0x5055cc
mov eax, dword [esi + 0x560]
push dword [eax + 0x40]
call fcn.00507cf0
mov ecx, dword [edi + 0x560]
add esp, 4
cmp eax, dword [ecx + 0x40]
jne 0x5057d3
cmp byte [esi + 0x52f], 0
je 0x5057d3
cmp byte [edi + 0x518], 0
je 0x5055f1
push dword [esi + 0x31c]
push dword [edi + 0x31c]
call fcn.0050d220
add esp, 8
test eax, eax
je 0x5057d3
cmp byte [edi + 0x519], 0
je 0x50560c
mov eax, dword [edi + 0x36c]
cmp eax, dword [esi + 0x36c]
jne 0x5057d3
push dword [esi + 0x304]
push dword [edi + 0x304]
call fcn.0050d220
add esp, 8
test eax, eax
je 0x5057d3
mov eax, dword [edi + 0x368]
cmp eax, dword [esi + 0x368]
jne 0x5057d3
mov eax, dword [edi + 0x560]
test byte [eax + 0x44], 1
je 0x505677
lea eax, [esi + 0x4ac]
push eax
lea eax, [edi + 0x4ac]
push eax
call fcn.00504560
add esp, 8
test al, al
je 0x5057d3
cmp dword [esi + 0x468], 2
je 0x505677
mov byte [esp + 0x12], 1
jmp 0x5057d3
mov bh, byte [esp + 0x13]
test bh, bh
je 0x505710
mov ecx, dword [esi + 0x3d8]
mov eax, dword [edi + 0x3d8]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5056b0
test dl, dl
je 0x5056ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5056b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x505690
xor eax, eax
jmp 0x5056b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5056ee
mov ecx, dword [esi + 0x3dc]
mov eax, dword [edi + 0x3dc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5056e5
test dl, dl
je 0x5056e1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5056e5
add eax, 2
add ecx, 2
test dl, dl
jne 0x5056c5
xor eax, eax
jmp 0x5056ea
sbb eax, eax
or eax, 1
test eax, eax
je 0x50571d
cmp dword [esi + 0x5dc], 0
mov ebx, dword [esp + 0x2c]
mov dl, byte [esp + 0x30]
mov ebp, dword [esp + 0x14]
jne 0x5057df
mov dword [esp + 0x18], esi
jmp 0x5057df
cmp dword [esi + 0x5dc], 0
jne 0x5057d3
mov al, byte [esp + 0x11]
test al, al
je 0x5057ed
mov eax, dword [esi + 0x35c]
test eax, eax
je 0x5057d3
mov edx, dword [esi + 0x360]
test edx, edx
je 0x5057d3
mov ecx, dword [edi + 0x35c]
nop dword [eax + eax]
mov bl, byte [ecx]
cmp bl, byte [eax]
jne 0x505770
test bl, bl
je 0x50576c
mov bl, byte [ecx + 1]
cmp bl, byte [eax + 1]
jne 0x505770
add ecx, 2
add eax, 2
test bl, bl
jne 0x505750
xor eax, eax
jmp 0x505775
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5057d3
mov eax, dword [edi + 0x360]
nop
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x5057a0
test cl, cl
je 0x50579c
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x5057a0
add eax, 2
add edx, 2
test cl, cl
jne 0x505780
xor eax, eax
jmp 0x5057a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5057d3
mov al, byte [esp + 0x11]
test bh, bh
jne 0x5057b5
test al, al
je 0x5057f8
mov dword [esp + 0x18], esi
test bh, bh
je 0x5057c6
cmp dword [esi + 0x5dc], 0
jne 0x50581b
test al, al
je 0x5057d3
cmp dword [esi + 0x5e0], 0
jne 0x50581b
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov dl, byte [esp + 0x30]
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x505210
jmp 0x505826
cmp dword [esi + 0x5e0], 0
jne 0x5057d3
jmp 0x5057ad
mov al, byte [esp + 0x30]
mov ebx, dword [esp + 0x2c]
test al, al
je 0x50582a
cmp dword [esp + 0x20], 0
je 0x50582a
push str.Multiplexed_connection_found__n
push ebx
call fcn.0050a640
add esp, 8
jmp 0x50582a
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
mov byte [eax], 1
mov esi, dword [esp + 0x18]
test esi, esi
je 0x50585e
push esi
push ebx
mov dword [esi], ebx
call fcn.004fb0f0
add esp, 8
cmp dword [ebx + 0x80], 0
je 0x50584e
push 5
push ebx
call fcn.0050dff0
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 0x505872
push 5
push ebx
call fcn.0050dff0
add esp, 8
cmp byte [esp + 0x12], 0
je 0x505897
cmp byte [ebx + 0xb55], 0
je 0x505897
push str.Found_pending_candidate_for_reuse_and_CURLOPT_PIPEWAIT_is_set_n
push ebx
call fcn.0050a640
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