Function at 0x408950
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 + 0x11], 0
mov eax, dword [edi + 0x2c0]
test byte [eax + 0x40], 3
je 0x4089a7
cmp byte [edi + 0x295], 0
je 0x408984
cmp byte [edi + 0x288], 0
jne 0x4089a7
mov ebx, dword [esp + 0x2c]
push dword [ebx + 0x78]
call fcn.00412a30
add esp, 4
test al, al
je 0x4089ab
cmp dword [ebx + 0x808], 3
jl 0x4089ab
mov esi, 2
jmp 0x4089ab
mov ebx, dword [esp + 0x2c]
test esi, esi
setne al
test byte [ebx + 0xc80], 0x28
mov byte [esp + 0x30], al
je 0x4089d0
mov eax, dword [edi + 0x2c0]
test byte [eax + 0x40], 3
je 0x4089d0
mov eax, 1
jmp 0x4089d2
xor eax, eax
test eax, eax
setne byte [esp + 0x13]
cmp byte [edi + 0x291], 0
je 0x4089fe
test byte [ebx + 0xc90], 0x28
je 0x4089fe
mov eax, dword [edi + 0x2c0]
test byte [eax + 0x40], 3
je 0x4089fe
mov eax, 1
jmp 0x408a00
xor eax, eax
mov esi, dword [esp + 0x3c]
test eax, eax
mov eax, dword [esp + 0x38]
setne byte [esp + 0x12]
mov byte [eax], 0
lea eax, [esp + 0x24]
push eax
mov byte [esi], 0
push dword [ebx + 0xbf0]
push edi
call fcn.00415850
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4090bd
cmp dword [ebp], 2
mov ecx, str.can_multiplex
je 0x408a47
mov ecx, str.serially
push ecx
push ebp
push dword [esp + 0x2c]
push str.Found_bundle_for_host__s:__p___s__n
push ebx
call fcn.004119b0
mov cl, byte [esp + 0x44]
add esp, 0x14
test cl, cl
je 0x408af4
cmp dword [ebp], 0
jne 0x408aab
cmp byte [ebx + 0xaa4], 0
je 0x408a97
push str.Server_doesnt_support_multiplex_yet__wait_n
push ebx
call fcn.004119b0
push ebx
mov byte [esi], 1
call fcn.00415b90
add esp, 0xc
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.004119b0
add esp, 8
xor cl, cl
mov byte [esp + 0x30], cl
cmp dword [ebp], 2
jne 0x408ada
push dword [ebx + 0x78]
call fcn.00412a30
add esp, 4
test al, al
jne 0x408ad6
push str.Could_multiplex__but_not_asked_to__n
push ebx
call fcn.004119b0
add esp, 8
xor cl, cl
mov byte [esp + 0x30], cl
jmp 0x408ada
mov cl, byte [esp + 0x30]
cmp dword [ebp], 0xffffffff
jne 0x408af4
push str.Can_not_multiplex__even_if_we_wanted_to__n
push ebx
call fcn.004119b0
add esp, 8
xor cl, cl
mov byte [esp + 0x30], cl
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4090b9
mov eax, dword [esp + 0x1c]
mov esi, dword [esi]
mov eax, dword [eax + 8]
cmp byte [esi + 0x2a5], 0
mov dword [esp + 0x1c], eax
jne 0x40904f
cmp byte [esi + 0x288], 0
jne 0x40904f
cmp dword [esi + 0x348], 0
je 0x408b40
cmp dword [ebp], 2
jne 0x408b40
mov eax, 1
jmp 0x408b42
xor eax, eax
mov dword [esp + 0x20], eax
test cl, cl
jne 0x408b76
test eax, eax
jne 0x40904f
cmp dword [esi + 0x1a4], 0xffffffff
jne 0x408b76
push dword [esi + 0x48]
mov byte [esp + 0x15], 1
push str.Connection__ld_isnt_open_enough__cant_reuse_n
push ebx
call fcn.004119b0
add esp, 0xc
jmp 0x40904b
mov ecx, dword [esi + 0x2c0]
mov edx, dword [edi + 0x2c0]
mov eax, dword [ecx + 0x44]
xor eax, dword [edx + 0x44]
test al, 1
je 0x408bad
push dword [ecx + 0x40]
call fcn.0040b3b0
add esp, 4
cmp eax, dword [edx + 0x40]
jne 0x40904b
cmp byte [esi + 0x54c], 0
je 0x40904b
mov al, byte [edi + 0x28e]
cmp al, byte [esi + 0x28e]
jne 0x40904b
mov al, byte [edi + 0x28f]
cmp al, byte [esi + 0x28f]
jne 0x40904b
test al, al
je 0x408bf3
lea eax, [esi + 0xbc]
push eax
lea eax, [edi + 0xbc]
push eax
call fcn.0040c4d0
add esp, 8
test al, al
je 0x40904b
mov al, byte [edi + 0x28b]
cmp al, byte [esi + 0x28b]
jne 0x40904b
mov al, byte [edi + 0x28c]
cmp al, byte [esi + 0x28c]
jne 0x40904b
cmp byte [edi + 0x28e], 0
je 0x408cbb
lea eax, [esi + 0xdc]
push eax
lea eax, [edi + 0xdc]
push eax
call fcn.0040c4d0
add esp, 8
test al, al
je 0x40904b
mov al, byte [edi + 0x297]
cmp al, byte [esi + 0x297]
jne 0x40904b
cmp dword [edi + 0xf0], 2
jne 0x408cbb
mov eax, dword [edi + 0x2c0]
test byte [eax + 0x44], 1
je 0x408c90
lea eax, [esi + 0x258]
push eax
lea eax, [edi + 0x258]
push eax
call fcn.0040fa90
add esp, 8
test al, al
je 0x40904b
cmp dword [esi + 0x208], 2
jmp 0x408cb5
lea eax, [esi + 0x22c]
push eax
lea eax, [edi + 0x22c]
push eax
call fcn.0040fa90
add esp, 8
test al, al
je 0x40904b
cmp dword [esi + 0x1e8], 2
jne 0x40904b
mov cl, byte [esp + 0x30]
test cl, cl
jne 0x408cce
cmp dword [esi], 0
jne 0x40904f
jmp 0x408ce2
mov eax, dword [esi]
test eax, eax
je 0x408ce2
mov ecx, dword [edi]
mov eax, dword [eax + 0x78]
cmp eax, dword [ecx + 0x78]
jne 0x40904b
mov ecx, dword [edi + 0x534]
test ecx, ecx
jne 0x408cf5
cmp word [edi + 0x538], cx
je 0x408d5d
mov ax, word [esi + 0x538]
cmp ax, word [edi + 0x538]
jne 0x40904b
mov eax, dword [esi + 0x53c]
cmp eax, dword [edi + 0x53c]
jne 0x40904b
test ecx, ecx
je 0x408d5d
mov eax, dword [esi + 0x534]
test eax, eax
je 0x40904b
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408d50
test dl, dl
je 0x408d4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408d50
add eax, 2
add ecx, 2
test dl, dl
jne 0x408d30
xor eax, eax
jmp 0x408d55
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40904b
mov ebp, dword [edi + 0x2c0]
mov ebx, dword [ebp + 0x44]
test bl, bl
js 0x408ddd
mov ecx, dword [esi + 0x170]
mov eax, dword [edi + 0x170]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408d96
test dl, dl
je 0x408d92
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408d96
add eax, 2
add ecx, 2
test dl, dl
jne 0x408d76
xor eax, eax
jmp 0x408d9b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409043
mov ecx, dword [esi + 0x174]
mov eax, dword [edi + 0x174]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408dd0
test dl, dl
je 0x408dcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408dd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x408db0
xor eax, eax
jmp 0x408dd5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409043
cmp byte [edi + 0x28e], 0
je 0x408df8
test bl, 1
jne 0x408df8
cmp byte [edi + 0x297], 0
je 0x408ee7
mov eax, dword [esi + 0x2c0]
push dword [eax]
push dword [ebp]
call fcn.0041a450
add esp, 8
test eax, eax
jne 0x408e3c
mov eax, dword [esi + 0x2c0]
push dword [eax + 0x40]
call fcn.0040b3b0
mov ecx, dword [edi + 0x2c0]
add esp, 4
cmp eax, dword [ecx + 0x40]
jne 0x409043
cmp byte [esi + 0x54c], 0
je 0x409043
cmp byte [edi + 0x28b], 0
je 0x408e61
push dword [esi + 0xb4]
push dword [edi + 0xb4]
call fcn.0041a450
add esp, 8
test eax, eax
je 0x409043
cmp byte [edi + 0x28c], 0
je 0x408e7c
mov eax, dword [edi + 0x104]
cmp eax, dword [esi + 0x104]
jne 0x409043
push dword [esi + 0x9c]
push dword [edi + 0x9c]
call fcn.0041a450
add esp, 8
test eax, eax
je 0x409043
mov eax, dword [edi + 0x100]
cmp eax, dword [esi + 0x100]
jne 0x409043
mov eax, dword [edi + 0x2c0]
test byte [eax + 0x44], 1
je 0x408ee7
lea eax, [esi + 0x22c]
push eax
lea eax, [edi + 0x22c]
push eax
call fcn.0040fa90
add esp, 8
test al, al
je 0x409043
cmp dword [esi + 0x1e8], 2
je 0x408ee7
mov byte [esp + 0x11], 1
jmp 0x409043
mov bh, byte [esp + 0x13]
test bh, bh
je 0x408f80
mov ecx, dword [esi + 0x170]
mov eax, dword [edi + 0x170]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408f20
test dl, dl
je 0x408f1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408f20
add eax, 2
add ecx, 2
test dl, dl
jne 0x408f00
xor eax, eax
jmp 0x408f25
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408f5e
mov ecx, dword [esi + 0x174]
mov eax, dword [edi + 0x174]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408f55
test dl, dl
je 0x408f51
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408f55
add eax, 2
add ecx, 2
test dl, dl
jne 0x408f35
xor eax, eax
jmp 0x408f5a
sbb eax, eax
or eax, 1
test eax, eax
je 0x408f8d
cmp dword [esi + 0x358], 0
mov ebx, dword [esp + 0x2c]
mov cl, byte [esp + 0x30]
mov ebp, dword [esp + 0x14]
jne 0x40904f
mov dword [esp + 0x18], esi
jmp 0x40904f
cmp dword [esi + 0x358], 0
jne 0x409043
mov al, byte [esp + 0x12]
test al, al
je 0x40905d
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x409043
mov edx, dword [esi + 0xf8]
test edx, edx
je 0x409043
mov ecx, dword [edi + 0xf4]
jmp 0x408fc0
mov bl, byte [ecx]
cmp bl, byte [eax]
jne 0x408fe0
test bl, bl
je 0x408fdc
mov bl, byte [ecx + 1]
cmp bl, byte [eax + 1]
jne 0x408fe0
add ecx, 2
add eax, 2
test bl, bl
jne 0x408fc0
xor eax, eax
jmp 0x408fe5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409043
mov eax, dword [edi + 0xf8]
nop
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x409010
test cl, cl
je 0x40900c
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x409010
add eax, 2
add edx, 2
test cl, cl
jne 0x408ff0
xor eax, eax
jmp 0x409015
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409043
mov al, byte [esp + 0x12]
test bh, bh
jne 0x409025
test al, al
je 0x409068
mov dword [esp + 0x18], esi
test bh, bh
je 0x409036
cmp dword [esi + 0x358], 0
jne 0x40908b
test al, al
je 0x409043
cmp dword [esi + 0x35c], 0
jne 0x40908b
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov cl, byte [esp + 0x30]
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x408b03
jmp 0x409096
cmp dword [esi + 0x35c], 0
jne 0x409043
jmp 0x40901d
mov al, byte [esp + 0x30]
mov ebx, dword [esp + 0x2c]
test al, al
je 0x40909a
cmp dword [esp + 0x20], 0
je 0x40909a
push str.Multiplexed_connection_found__n
push ebx
call fcn.004119b0
add esp, 8
jmp 0x40909a
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
mov byte [eax], 1
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4090b9
push ebx
mov dword [esi], ebx
call fcn.00415b90
mov eax, dword [esp + 0x38]
add esp, 4
pop edi
mov dword [eax], esi
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov esi, dword [esp + 0x3c]
push ebx
call fcn.00415b90
add esp, 4
cmp byte [esp + 0x11], 0
je 0x4090e7
cmp byte [ebx + 0xaa4], 0
je 0x4090e7
push str.Found_pending_candidate_for_reuse_and_CURLOPT_PIPEWAIT_is_set_n
push ebx
call fcn.004119b0
add esp, 8
mov byte [esi], 1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret