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

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 0x5f0]
push esi
xor ecx, ecx
mov ebx, 3
xor esi, esi
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
test byte [eax + 0x40], bl
je 0x40b7ba
cmp dword [ebp + 0x578], ecx
je 0x40b79b
cmp dword [ebp + 0x550], ecx
jne 0x40b7ba
mov ecx, dword [edi + 0x78]
push ecx
call fcn.0040cc40
add esp, 4
test eax, eax
je 0x40b7b8
cmp dword [edi + 0x85c], ebx
jl 0x40b7b8
mov esi, 2
xor ecx, ecx
mov al, 0x28
mov dword [esp + 0x38], esi
test byte [edi + 0xef0], al
je 0x40b7db
mov edx, dword [ebp + 0x5f0]
mov dword [esp + 0x10], 1
test byte [edx + 0x40], bl
jne 0x40b7df
mov dword [esp + 0x10], ecx
cmp dword [ebp + 0x544], ecx
je 0x40b802
test byte [edi + 0xf08], al
je 0x40b802
mov eax, dword [ebp + 0x5f0]
mov dword [esp + 0x28], 1
test byte [eax + 0x40], bl
jne 0x40b806
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [edx], ecx
mov dword [eax], ecx
mov edx, dword [edi + 0xe30]
lea ecx, [esp + 0x2c]
push ecx
push edx
push ebp
call fcn.00418240
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x40bfbd
mov ebx, eax
cmp dword [ebx], 2
mov eax, str.can_multiplex
je 0x40b844
mov eax, str.serially
push eax
mov eax, dword [esp + 0x30]
push ebx
push eax
push str.Found_bundle_for_host__s:__p___s__n
push edi
call fcn.0040ffd0
add esp, 0x14
test esi, esi
je 0x40b905
cmp dword [ebx], 0
jne 0x40b8bf
cmp dword [edi + 0xc48], 0
je 0x40b8a9
push str.Server_doesnt_support_multiplex_yet__wait_n
push edi
call fcn.0040ffd0
mov ecx, dword [esp + 0x4c]
add esp, 8
mov dword [ecx], 1
cmp dword [edi + 0x80], 0
je 0x40bffd
push 5
push edi
call fcn.00418d40
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
push str.Server_doesnt_support_multiplex__yet__n
push edi
call fcn.0040ffd0
add esp, 8
mov dword [esp + 0x38], 0
cmp dword [ebx], 2
jne 0x40b8ea
mov edx, dword [edi + 0x78]
push edx
call fcn.0040cc40
add esp, 4
test eax, eax
jne 0x40b8ea
push str.Could_multiplex__but_not_asked_to__n
push edi
call fcn.0040ffd0
add esp, 8
mov dword [esp + 0x38], 0
cmp dword [ebx], 0xffffffff
jne 0x40b905
push str.Can_not_multiplex__even_if_we_wanted_to__n
push edi
call fcn.0040ffd0
add esp, 8
mov dword [esp + 0x38], 0
mov ebx, dword [ebx + 8]
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x40bfbd
jmp 0x40b920
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
cmp dword [esi + 0x5b0], 0
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
jne 0x40bf43
cmp dword [esi + 0x550], 0
jne 0x40bf43
mov edi, dword [esp + 0x34]
mov eax, edi
call fcn.00408b20
test eax, eax
je 0x40b9b3
mov eax, dword [esi + 0x2b4]
test eax, eax
je 0x40b97c
push eax
push edi
call fcn.00438bf0
add esp, 8
mov dword [esi + 0x2b4], 0
push esi
call fcn.00439400
push esi
call fcn.00438dd0
mov ecx, dword [esi + 0x5f0]
mov dword [esi], edi
mov eax, dword [ecx + 0x30]
add esp, 8
test eax, eax
je 0x40b9a2
push 1
push esi
call eax
add esp, 8
call fcn.004088e0
mov eax, esi
call fcn.0040b370
jmp 0x40bf43
mov edx, dword [esp + 0x24]
cmp dword [edx], 2
jne 0x40b9c6
mov eax, dword [esi + 0x65c]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x38], 0
jne 0x40ba2a
cmp dword [esp + 0x1c], 0
jne 0x40bf43
cmp byte [esi + 0x2c4], 0
jne 0x40b9fd
mov ecx, dword [esi + 0x2b0]
push ecx
mov edx, edi
push str.Connection__ld_is_still_name_resolving__cant_reuse_n
push edx
call fcn.0040ffd0
add esp, 0xc
jmp 0x40bf43
cmp dword [esi + 0x420], 0xffffffff
jne 0x40ba2a
mov eax, dword [esi + 0x2b0]
push eax
mov ecx, edi
push str.Connection__ld_isnt_open_enough__cant_reuse_n
push ecx
mov dword [esp + 0x2c], 1
call fcn.0040ffd0
add esp, 0xc
jmp 0x40bf43
mov eax, dword [ebp + 0x8ac]
test eax, eax
je 0x40ba7d
mov ecx, dword [esi + 0x8ac]
test ecx, ecx
je 0x40bf43
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ba62
test dl, dl
je 0x40ba5e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ba62
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ba42
xor eax, eax
jmp 0x40ba67
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bf43
mov edx, dword [ebp + 0x5b8]
cmp edx, dword [esi + 0x5b8]
jmp 0x40ba84
cmp dword [esi + 0x8ac], 0
jne 0x40bf43
mov eax, dword [esi + 0x5f0]
mov ecx, dword [ebp + 0x5f0]
mov edx, dword [eax + 0x48]
xor edx, dword [ecx + 0x48]
test dl, 1
je 0x40baba
mov eax, dword [eax + 0x44]
cmp eax, dword [ecx + 0x40]
jne 0x40bf43
cmp dword [esi + 0x5bc], 0
je 0x40bf43
mov ecx, dword [ebp + 0x53c]
cmp ecx, dword [esi + 0x53c]
jne 0x40bf43
mov eax, dword [ebp + 0x540]
cmp eax, dword [esi + 0x540]
jne 0x40bf43
test eax, eax
je 0x40baff
lea edx, [ebp + 0x324]
lea edi, [esi + 0x324]
push edx
call fcn.004089a0
add esp, 4
test eax, eax
je 0x40bf43
mov eax, dword [ebp + 0x55c]
cmp eax, dword [esi + 0x55c]
jne 0x40bf43
mov ecx, dword [ebp + 0x560]
cmp ecx, dword [esi + 0x560]
jne 0x40bf43
cmp dword [ebp + 0x53c], 0
je 0x40bbc2
lea eax, [esi + 0x344]
lea ecx, [ebp + 0x344]
call fcn.00408970
test eax, eax
je 0x40bf43
mov edx, dword [ebp + 0x548]
cmp edx, dword [esi + 0x548]
jne 0x40bf43
cmp dword [ebp + 0x358], 2
jne 0x40bbc2
mov eax, dword [ebp + 0x5f0]
test byte [eax + 0x48], 1
je 0x40bb97
lea ecx, [esi + 0x4ec]
push ecx
lea edx, [ebp + 0x4ec]
push edx
call fcn.00406aa0
add esp, 8
test eax, eax
je 0x40bf43
cmp dword [esi + 0x488], 2
jmp 0x40bbbc
lea eax, [esi + 0x4ac]
push eax
lea ecx, [ebp + 0x4ac]
push ecx
call fcn.00406aa0
add esp, 8
test eax, eax
je 0x40bf43
cmp dword [esi + 0x468], 2
jne 0x40bf43
cmp dword [esp + 0x38], 0
jne 0x40bbce
cmp dword [esi], 0
jmp 0x40bbdd
mov eax, dword [esi]
test eax, eax
je 0x40bbe3
mov edx, dword [ebp]
mov eax, dword [eax + 0x78]
cmp eax, dword [edx + 0x78]
jne 0x40bf43
mov ecx, dword [ebp + 0x894]
test ecx, ecx
jne 0x40bbf6
cmp word [ebp + 0x898], cx
je 0x40bc5d
mov dx, word [esi + 0x898]
cmp dx, word [ebp + 0x898]
jne 0x40bf43
mov eax, dword [esi + 0x89c]
cmp eax, dword [ebp + 0x89c]
jne 0x40bf43
test ecx, ecx
je 0x40bc5d
mov eax, dword [esi + 0x894]
test eax, eax
je 0x40bf43
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bc50
test dl, dl
je 0x40bc4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bc50
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bc30
xor eax, eax
jmp 0x40bc55
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bf43
mov edi, dword [ebp + 0x5f0]
mov ebx, dword [edi + 0x48]
test bl, bl
js 0x40bcdd
mov ecx, dword [esi + 0x3d8]
mov eax, dword [ebp + 0x3d8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bc96
test dl, dl
je 0x40bc92
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bc96
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bc76
xor eax, eax
jmp 0x40bc9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bf43
mov ecx, dword [esi + 0x3dc]
mov eax, dword [ebp + 0x3dc]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bcd0
test dl, dl
je 0x40bccc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bcd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bcb0
xor eax, eax
jmp 0x40bcd5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bf43
test bl, 1
jne 0x40bcf8
cmp dword [ebp + 0x53c], 0
je 0x40bcf8
cmp dword [ebp + 0x548], 0
je 0x40bde7
mov ecx, dword [esi + 0x5f0]
mov edx, dword [ecx]
mov eax, dword [edi]
push edx
push eax
call fcn.00418b50
add esp, 8
test eax, eax
jne 0x40bd35
mov ecx, dword [esi + 0x5f0]
mov edx, dword [ebp + 0x5f0]
mov eax, dword [ecx + 0x44]
cmp eax, dword [edx + 0x40]
jne 0x40bf43
cmp dword [esi + 0x5bc], 0
je 0x40bf43
cmp dword [ebp + 0x55c], 0
je 0x40bd5c
mov ecx, dword [esi + 0x31c]
mov edx, dword [ebp + 0x31c]
push ecx
push edx
call fcn.00418b50
add esp, 8
test eax, eax
je 0x40bf43
cmp dword [ebp + 0x560], 0
je 0x40bd77
mov eax, dword [ebp + 0x36c]
cmp eax, dword [esi + 0x36c]
jne 0x40bf43
mov ecx, dword [esi + 0x304]
mov edx, dword [ebp + 0x304]
push ecx
push edx
call fcn.00418b50
add esp, 8
test eax, eax
je 0x40bf43
mov eax, dword [ebp + 0x368]
cmp eax, dword [esi + 0x368]
jne 0x40bf43
mov ecx, dword [ebp + 0x5f0]
test byte [ecx + 0x48], 1
je 0x40bde7
lea edx, [esi + 0x4ac]
push edx
lea eax, [ebp + 0x4ac]
push eax
call fcn.00406aa0
add esp, 8
test eax, eax
je 0x40bf43
cmp dword [esi + 0x468], 2
je 0x40bde7
mov dword [esp + 0x20], 1
jmp 0x40bf43
cmp dword [esp + 0x10], 0
je 0x40be74
mov ecx, dword [esi + 0x3d8]
mov eax, dword [ebp + 0x3d8]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40be20
test dl, dl
je 0x40be1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40be20
add eax, 2
add ecx, 2
test dl, dl
jne 0x40be00
xor eax, eax
jmp 0x40be25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40be5e
mov ecx, dword [esi + 0x3dc]
mov eax, dword [ebp + 0x3dc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40be55
test dl, dl
je 0x40be51
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40be55
add eax, 2
add ecx, 2
test dl, dl
jne 0x40be35
xor eax, eax
jmp 0x40be5a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40be81
cmp dword [esi + 0x66c], 0
jne 0x40bf43
mov dword [esp + 0x18], esi
jmp 0x40bf43
cmp dword [esi + 0x66c], 0
jne 0x40bf43
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x40bf0c
mov edx, dword [esi + 0x35c]
test edx, edx
je 0x40bf43
mov edi, dword [esi + 0x360]
test edi, edi
je 0x40bf43
mov eax, dword [ebp + 0x35c]
nop
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x40bed0
test cl, cl
je 0x40becc
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40bed0
add eax, 2
add edx, 2
test cl, cl
jne 0x40beb0
xor eax, eax
jmp 0x40bed5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bf43
mov eax, dword [ebp + 0x360]
mov ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bf01
test dl, dl
je 0x40befd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bf01
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bee1
xor eax, eax
jmp 0x40bf06
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40bf15
jmp 0x40bf43
cmp dword [esi + 0x670], 0
jne 0x40bf43
cmp dword [esp + 0x10], 0
jne 0x40bf20
test ebx, ebx
je 0x40bf54
cmp dword [esp + 0x10], 0
mov edi, esi
mov dword [esp + 0x18], edi
je 0x40bf36
cmp dword [esi + 0x66c], 0
jne 0x40bf78
test ebx, ebx
je 0x40bf43
cmp dword [esi + 0x670], 0
jne 0x40bf78
cmp dword [esp + 0x14], 0
jne 0x40b920
mov edi, dword [esp + 0x18]
jmp 0x40bf82
cmp dword [esp + 0x38], 0
mov edi, esi
je 0x40bf82
cmp dword [esp + 0x1c], 0
je 0x40bf82
mov ecx, dword [esp + 0x34]
push str.Multiplexed_connection_found__n
push ecx
call fcn.0040ffd0
add esp, 8
jmp 0x40bf82
mov edx, dword [esp + 0x40]
mov dword [edx], 1
test edi, edi
je 0x40bfbd
mov esi, dword [esp + 0x34]
push edi
push esi
mov dword [edi], esi
call fcn.0040cc90
add esp, 8
cmp dword [esi + 0x80], 0
je 0x40bfaa
push 5
push esi
call fcn.00418d40
add esp, 8
mov eax, dword [esp + 0x3c]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
mov esi, dword [esp + 0x34]
cmp dword [esi + 0x80], 0
je 0x40bfd5
push 5
push esi
call fcn.00418d40
add esp, 8
cmp dword [esp + 0x20], 0
je 0x40bffd
cmp dword [esi + 0xc48], 0
je 0x40bffd
push str.Found_pending_candidate_for_reuse_and_CURLOPT_PIPEWAIT_is_set_n
push esi
call fcn.0040ffd0
mov ecx, dword [esp + 0x4c]
mov dword [ecx], 1
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret